log all meterbus uart errors
This commit is contained in:
parent
bd435dd5d6
commit
3dd954d379
@ -269,6 +269,7 @@ void mbusCommRxCpltCallback(UART_HandleTypeDef *huart) {
|
||||
}
|
||||
|
||||
void mbusCommErrorCallback(UART_HandleTypeDef *huart) {
|
||||
coloredMsg(LOG_RED, false, "mbc errcb 0x%02x", huart->ErrorCode);
|
||||
if (huart->ErrorCode == HAL_UART_ERROR_ORE) {
|
||||
coloredMsg(LOG_RED, false, "mbc errcb overrun error, restart receiving");
|
||||
mbusCommStats.overrunCnt += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user