refactoring meterbus

This commit is contained in:
Wolfgang Hottgenroth 2020-11-24 15:03:09 +01:00
parent 53ccd32a0c
commit bdba2a79cd
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -278,10 +278,11 @@ void mbusCommExec() {
// otherwise return
int ro = ringbufferGetOne(&(mbusCommHandle.receiveBuffer));
if (-1 == ro) {
coloredMsg(LOG_RED, false, "RO: nothing");
// coloredMsg(LOG_RED, false, "RO: nothing");
return;
}
mbusCommHandle.waitForOctet = false;
receivedOctet = (uint8_t) ro;
coloredMsg(LOG_RED, false, "RO: 0x%02x", receivedOctet);
}