mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Add ifdef to Modbus server error message printing
This commit is contained in:
parent
b8cb5fede6
commit
d67e9dcf99
1 changed files with 2 additions and 0 deletions
|
@ -256,7 +256,9 @@ void ModbusServerRTU::serve(ModbusServerRTU *myServer) {
|
|||
if (request[0] != TIMEOUT) {
|
||||
// Any other error could be important for debugging, so print it
|
||||
ModbusError me((Error)request[0]);
|
||||
#ifdef DEBUG_VIA_USB
|
||||
LOG_E("RTU receive: %02X - %s\n", (int)me, (const char *)me);
|
||||
#endif //DEBUG_VIA_USB
|
||||
}
|
||||
}
|
||||
// Give scheduler room to breathe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue