Skip to content

Commit e99ae40

Browse files
author
gabrielsan
authored
typo fix
typo fix
1 parent 5e0df95 commit e99ae40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ModbusRtu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/
499499
boolean 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;

0 commit comments

Comments
 (0)