do not consider noise error

This commit is contained in:
Wolfgang Hottgenroth 2020-11-25 13:35:54 +01:00
parent f5f8aa0660
commit 397c3d2a56
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -284,7 +284,8 @@ void mbusCommISR() {
}
if ((isrflags & USART_SR_NE) != RESET) {
mbusCommStats.uartNoiseErrCnt += 1;
errorFound = true;
// do not consider noise as an error
// errorFound = true;
}
mbusCommStats.uartOctetCnt += 1;
// it is required to read the DR in any case here, not only when the buffer has space