diff --git a/cube/User/Src/main2.c b/cube/User/Src/main2.c index 9218826..6313b8a 100644 --- a/cube/User/Src/main2.c +++ b/cube/User/Src/main2.c @@ -64,7 +64,7 @@ void my_setup_2() { } void my_loop() { - show(DEBUG_2, TOGGLE); + // show(DEBUG_2, TOGGLE); schExec(); diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index 7fe3286..1e7dc9f 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -267,6 +267,7 @@ void mbusCommISR() { // RXNE flag is cleared by reading the DR, which is done in any case if (((isrflags & USART_SR_RXNE) != RESET) || ((isrflags & (USART_SR_ORE | USART_SR_FE | USART_SR_PE)) != RESET)) { if ((isrflags & USART_SR_ORE) != RESET) { + show(DEBUG_2, TOGGLE); mbusCommStats.uartOverrunCnt += 1; } if ((isrflags & USART_SR_FE) != RESET) {