From a482dcc95000fef87a4f43b8491383882ebdf040 Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Tue, 31 Mar 2009 09:31:11 +0200 Subject: [PATCH] Fix missing FLUSH_OR_RECONNECT_ON_ERROR in RTU mode --- modbus/modbus.c | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/modbus/modbus.c b/modbus/modbus.c index e43f9c7..c4a775c 100644 --- a/modbus/modbus.c +++ b/modbus/modbus.c @@ -1330,6 +1330,7 @@ void modbus_init_rtu(modbus_param_t *mb_param, const char *device, mb_param->type_com = RTU; mb_param->header_length = HEADER_LENGTH_RTU; mb_param->checksum_length = CHECKSUM_LENGTH_RTU; + mb_param->error_handling = FLUSH_OR_RECONNECT_ON_ERROR; } /* Initializes the modbus_param_t structure for TCP. -- libgit2 0.21.4