refactoring meterbus
This commit is contained in:
parent
53ccd32a0c
commit
bdba2a79cd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user