Commit e6b8ba44713b0b4732f3452a8696221d37d00d79
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,7 +782,7 @@ int modbus_reply(modbus_t *ctx, const uint8_t *req, | ||
| 782 | if (nb < 1 || MODBUS_MAX_READ_REGISTERS < nb) { | 782 | if (nb < 1 || MODBUS_MAX_READ_REGISTERS < nb) { |
| 783 | rsp_length = response_exception( | 783 | rsp_length = response_exception( |
| 784 | ctx, &sft, MODBUS_EXCEPTION_ILLEGAL_DATA_VALUE, rsp, TRUE, | 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 | nb, MODBUS_MAX_READ_REGISTERS); | 786 | nb, MODBUS_MAX_READ_REGISTERS); |
| 787 | } else if (mapping_address < 0 || | 787 | } else if (mapping_address < 0 || |
| 788 | (mapping_address + nb) > mb_mapping->nb_registers) { | 788 | (mapping_address + nb) > mb_mapping->nb_registers) { |