summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd3a393)
raw | patch | inline | side by side (parent: cd3a393)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 15:21:56 +0000 (17:21 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 15:21:56 +0000 (17:21 +0200) |
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index 51447b162e0e2240386a8b01c7d94702d3e83af6..11b9bf1be8a8d265ebdd4338ffe96fec5e0c7d19 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
if ((host == NULL) || (slave == NULL) || (data == NULL))
return (EINVAL);
- if (host->interval <= 0)
+ if (host->interval == 0)
host->interval = plugin_get_interval ();
if (slave->instance[0] == 0)