File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class Modbus
197197 void begin (SoftwareSerial *sPort , long u32speed);
198198 // void begin(long u32speed, uint8_t u8config);
199199 void begin ();
200- void setTimeOut ( uint16_t u16timeout ); // !<write communication watch-dog timer
200+ void setTimeOut ( uint16_t u16timeOut ); // !<write communication watch-dog timer
201201 uint16_t getTimeOut (); // !<get communication watch-dog timer value
202202 boolean getTimeOutState (); // !<get communication watch-dog timer state
203203 int8_t query ( modbus_t telegram ); // !<only for master
@@ -498,7 +498,7 @@ void Modbus::setTimeOut( uint16_t u16timeOut)
498498 */
499499boolean Modbus::getTimeOutState ()
500500{
501- return ((unsigned long )(millis () -u32timeOut) > (unsigned long )u16timeout );
501+ return ((unsigned long )(millis () -u32timeOut) > (unsigned long )u16timeOut );
502502}
503503
504504/* *
@@ -679,7 +679,7 @@ int8_t Modbus::poll()
679679 else
680680 u8current = softPort->available ();
681681
682- if ((unsigned long )(millis () -u32timeOut) > (unsigned long )u16timeout )
682+ if ((unsigned long )(millis () -u32timeOut) > (unsigned long )u16timeOut )
683683 {
684684 u8state = COM_IDLE;
685685 u8lastError = NO_REPLY;
You can’t perform that action at this time.
0 commit comments