consider noise as real error too
This commit is contained in:
parent
cbc3ca6f20
commit
4e04ad6567
@ -289,8 +289,7 @@ void mbusCommISR() {
|
||||
}
|
||||
if ((isrflags & USART_SR_NE) != RESET) {
|
||||
mbusCommStats.uartNoiseErrCnt += 1;
|
||||
// do not consider noise as an error for the moment
|
||||
// errorFound = true;
|
||||
errorFound = true;
|
||||
}
|
||||
mbusCommStats.uartOctetCnt += 1;
|
||||
// it is required to read the DR in any case here, not only when the buffer has space
|
||||
|
Loading…
x
Reference in New Issue
Block a user