Skip to content

Commit 304912a

Browse files
authored
correction of TCP debug (#326)
used MODBUSRTU_DEBUG insted of MODBUSIP_DEBUG
1 parent 16a4094 commit 304912a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModbusTCPTemplate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void ModbusTCPTemplate<SERVER, CLIENT>::task() {
227227
delete currentClient;
228228
continue;
229229
}
230-
#if defined(MODBUSRTU_DEBUG)
230+
#if defined(MODBUSIP_DEBUG)
231231
Serial.println("IP: Connected");
232232
#endif
233233
if (cbConnect == nullptr || cbConnect(currentClient->remoteIP())) {

0 commit comments

Comments
 (0)