consider noise as real error too

This commit is contained in:
Wolfgang Hottgenroth 2020-11-26 09:50:44 +01:00
parent cbc3ca6f20
commit 4e04ad6567
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -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