Browse Source

Fix use of undefined backend in RTU

Stéphane Raimbault 14 years ago
parent
commit
788d7bb254
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modbus-rtu.c

+ 1 - 1
src/modbus-rtu.c

@@ -539,7 +539,7 @@ modbus_t* modbus_new_rtu(const char *device,
 
     ctx = (modbus_t *) malloc(sizeof(modbus_t));
     _modbus_init_common(ctx);
-    if (modbus_set_slave(ctx, slave) == -1) {
+    if (_modbus_set_slave(ctx, slave) == -1) {
         return NULL;
     }