Skip to content

Commit 1e90775

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 20eb9be commit 1e90775

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ extern "C" void hal_uart_notify_pins_detached(int uart_num) {
8282
#if SOC_UART_NUM > 5
8383
case 5: Serial5.end(); break;
8484
#endif
85-
default:
86-
log_e("hal_uart_notify_pins_detached: UART%d not handled!", uart_num);
87-
break;
85+
default: log_e("hal_uart_notify_pins_detached: UART%d not handled!", uart_num); break;
8886
}
8987
}
9088

cores/esp32/esp32-hal-uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static bool _uartDetachBus_RX(void *busptr) {
294294
log_d("_uartDetachBus_RX: RX pin already detached for UART%d", bus->num);
295295
return true;
296296
}
297-
if (bus->_txPin < 0) { // both rx and tx pins are detached, terminate the uart driver
297+
if (bus->_txPin < 0) { // both rx and tx pins are detached, terminate the uart driver
298298
log_d("_uartDetachBus_RX: both RX and TX pins detached for UART%d, terminating driver", bus->num);
299299
hal_uart_notify_pins_detached(bus->num);
300300
return true;
@@ -313,7 +313,7 @@ static bool _uartDetachBus_TX(void *busptr) {
313313
log_d("_uartDetachBus_TX: TX pin already detached for UART%d", bus->num);
314314
return true;
315315
}
316-
if (bus->_rxPin < 0) { // both rx and tx pins are detached, terminate the uart driver
316+
if (bus->_rxPin < 0) { // both rx and tx pins are detached, terminate the uart driver
317317
log_d("_uartDetachBus_TX: both RX and TX pins detached for UART%d, terminating driver", bus->num);
318318
hal_uart_notify_pins_detached(bus->num);
319319
return true;

0 commit comments

Comments
 (0)