File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments