From 7f077d4c5d39698eb16231f58fc817927aeafd1b Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 17:21:56 +0200 Subject: [PATCH] modbus plugin: unsigned value can't be negative --- src/modbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modbus.c b/src/modbus.c index 51447b16..11b9bf1b 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -257,7 +257,7 @@ static int mb_submit (mb_host_t *host, mb_slave_t *slave, /* {{{ */ 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) -- 2.30.2