summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f524c3)
raw | patch | inline | side by side (parent: 1f524c3)
author | Florian Forster <octo@noris.net> | |
Wed, 15 Dec 2010 14:56:14 +0000 (15:56 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 16 Dec 2010 00:22:37 +0000 (01:22 +0100) |
This is the current "stable" version.
src/modbus.c | patch | blob | history |
diff --git a/src/modbus.c b/src/modbus.c
index adab0d0fe8e0756641a509b0c39b6373c44735b4..40b6c57a36bfe39eab361032de7c56b74c0a9c7f 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
modbus_set_debug (&host->connection, 1);
-#if 0
/* We'll do the error handling ourselves. */
modbus_set_error_handling (&host->connection, NOP_ON_ERROR);
-#endif
if ((host->port < 1) || (host->port > 65535))
host->port = MODBUS_TCP_DEFAULT_PORT;
host->node, host->port);
modbus_init_tcp (&host->connection,
- /* host = */ host->node);
-#if 0
+ /* host = */ host->node,
/* port = */ host->port);
-#endif
status = modbus_connect (&host->connection);
if (status != 0)
static int mb_read_data (mb_host_t *host, mb_slave_t *slave, /* {{{ */
mb_data_t *data)
{
- int values[2];
+ uint16_t values[2];
int values_num;
const data_set_t *ds;
int status;