We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab7672b commit a5e4614Copy full SHA for a5e4614
cores/esp8266/HardwareSerial.cpp
@@ -174,7 +174,9 @@ HardwareSerial Serial(UART0);
174
// Executed at end of loop() processing when > 0 bytes available in the Serial port
175
void serialEventRun(void)
176
{
177
- if (serialEvent && Serial.available()) serialEvent();
+ if (serialEvent && Serial.available()) {
178
+ serialEvent();
179
+ }
180
}
181
#endif
182
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL1)
cores/esp8266/core_esp8266_main.cpp
@@ -195,7 +195,9 @@ static void loop_wrapper() {
195
196
loop();
197
loop_end();
198
- if (serialEventRun) serialEventRun();
+ if (serialEventRun) {
199
+ serialEventRun();
200
201
esp_schedule();
202
203
0 commit comments