aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modbuslog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index 46a1516..43d102d 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -266,6 +266,7 @@ int main(int argc, char *argv[]) {
if (rc == -1) {
syslog(LOG_ERR, "libmodbus error: [%s]",
modbus_strerror(errno));
+ sleep(1);
}
retry++;
} while ((rc == -1) && (retry < (modbus_retry + 1)));