Skip to content

Commit a5e4614

Browse files
Fix style
1 parent ab7672b commit a5e4614

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cores/esp8266/HardwareSerial.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ HardwareSerial Serial(UART0);
174174
// Executed at end of loop() processing when > 0 bytes available in the Serial port
175175
void serialEventRun(void)
176176
{
177-
if (serialEvent && Serial.available()) serialEvent();
177+
if (serialEvent && Serial.available()) {
178+
serialEvent();
179+
}
178180
}
179181
#endif
180182
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL1)

cores/esp8266/core_esp8266_main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ static void loop_wrapper() {
195195
}
196196
loop();
197197
loop_end();
198-
if (serialEventRun) serialEventRun();
198+
if (serialEventRun) {
199+
serialEventRun();
200+
}
199201
esp_schedule();
200202
}
201203

0 commit comments

Comments
 (0)