Commit e6b8ba44713b0b4732f3452a8696221d37d00d79

Authored by Stéphane Raimbault
1 parent 89998d4c

Fix wrong function name in debug message

Showing 1 changed file with 1 additions and 1 deletions
src/modbus.c
... ... @@ -782,7 +782,7 @@ int modbus_reply(modbus_t *ctx, const uint8_t *req,
782 782 if (nb < 1 || MODBUS_MAX_READ_REGISTERS < nb) {
783 783 rsp_length = response_exception(
784 784 ctx, &sft, MODBUS_EXCEPTION_ILLEGAL_DATA_VALUE, rsp, TRUE,
785   - "Illegal nb of values %d in read_holding_registers (max %d)\n",
  785 + "Illegal nb of values %d in read_registers (max %d)\n",
786 786 nb, MODBUS_MAX_READ_REGISTERS);
787 787 } else if (mapping_address < 0 ||
788 788 (mapping_address + nb) > mb_mapping->nb_registers) {
... ...