Skip to content

Commit a395bb4

Browse files
authored
Merge pull request #13 from Krosik/patch-1
ModbusRtu.h: Set getLastError() to 0 on new query
2 parents ce3489b + 08c8f14 commit a395bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ModbusRtu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ int8_t Modbus::query( modbus_t telegram )
659659

660660
sendTxBuffer();
661661
u8state = COM_WAITING;
662+
u8lastError = 0;
662663
return 0;
663664
}
664665

0 commit comments

Comments
 (0)