Commit 788d7bb254326407299a4eb48dba47d149b219c6

Authored by Stéphane Raimbault
1 parent f0b67888

Fix use of undefined backend in RTU

Showing 1 changed file with 1 additions and 1 deletions
src/modbus-rtu.c
... ... @@ -539,7 +539,7 @@ modbus_t* modbus_new_rtu(const char *device,
539 539  
540 540 ctx = (modbus_t *) malloc(sizeof(modbus_t));
541 541 _modbus_init_common(ctx);
542   - if (modbus_set_slave(ctx, slave) == -1) {
  542 + if (_modbus_set_slave(ctx, slave) == -1) {
543 543 return NULL;
544 544 }
545 545  
... ...