This commit is contained in:
Wolfgang Hottgenroth 2020-11-25 13:38:44 +01:00
parent 397c3d2a56
commit 7a12bba4df
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -289,8 +289,7 @@ void mbusCommISR() {
}
mbusCommStats.uartOctetCnt += 1;
// it is required to read the DR in any case here, not only when the buffer has space
// otherwise the interrupt flag won't be disabled, particularly important in case of
// ORE
// otherwise the interrupt flag won't be reset, particularly important in case of ORE
uint8_t data = (uint8_t)(mbusUart.Instance->DR & (uint8_t)0x00FF);
if ((! errorFound) &&
(mbusCommHandle.receiveBuffer.writeIdx < mbusCommHandle.receiveBuffer.size)) {