Skip to content

Commit ad1c39f

Browse files
authored
- Allow to change MODBUSRTU_TIMEOUT from project (#315)
1 parent 2eb5abe commit ad1c39f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ModbusSettings.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ Otherwise IP addresses only must be used
104104
#define MODBUSRTU_BROADCAST 0
105105
#define MB_RESERVE 248
106106
#define MB_SERIAL_BUFFER 128
107+
#ifndef MODBUSRTU_TIMEOUT
107108
#define MODBUSRTU_TIMEOUT 1000
109+
#endif
108110
#define MODBUSRTU_MAX_READMS 100
109111
/*
110112
#define MODBUSRTU_REDE

0 commit comments

Comments
 (0)