change
This commit is contained in:
parent
397c3d2a56
commit
7a12bba4df
@ -289,8 +289,7 @@ void mbusCommISR() {
|
|||||||
}
|
}
|
||||||
mbusCommStats.uartOctetCnt += 1;
|
mbusCommStats.uartOctetCnt += 1;
|
||||||
// it is required to read the DR in any case here, not only when the buffer has space
|
// 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
|
// otherwise the interrupt flag won't be reset, particularly important in case of ORE
|
||||||
// ORE
|
|
||||||
uint8_t data = (uint8_t)(mbusUart.Instance->DR & (uint8_t)0x00FF);
|
uint8_t data = (uint8_t)(mbusUart.Instance->DR & (uint8_t)0x00FF);
|
||||||
if ((! errorFound) &&
|
if ((! errorFound) &&
|
||||||
(mbusCommHandle.receiveBuffer.writeIdx < mbusCommHandle.receiveBuffer.size)) {
|
(mbusCommHandle.receiveBuffer.writeIdx < mbusCommHandle.receiveBuffer.size)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user