Skip to content

Commit

Permalink
Merge pull request #563 from dalathegreat/improvement/eModbus-update
Browse files Browse the repository at this point in the history
Improvement: Add ifdef to Modbus server error message printing
  • Loading branch information
dalathegreat authored Oct 28, 2024
2 parents d636afe + d67e9dc commit 14e9e2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Software/src/lib/eModbus-eModbus/ModbusServerRTU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e9e2a

Please sign in to comment.