Skip to content

Commit

Permalink
Fix wrong function name in debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed May 20, 2016
1 parent 89998d4 commit e6b8ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ int modbus_reply(modbus_t *ctx, const uint8_t *req,
if (nb < 1 || MODBUS_MAX_READ_REGISTERS < nb) {
rsp_length = response_exception(
ctx, &sft, MODBUS_EXCEPTION_ILLEGAL_DATA_VALUE, rsp, TRUE,
"Illegal nb of values %d in read_holding_registers (max %d)\n",
"Illegal nb of values %d in read_registers (max %d)\n",
nb, MODBUS_MAX_READ_REGISTERS);
} else if (mapping_address < 0 ||
(mapping_address + nb) > mb_mapping->nb_registers) {
Expand Down

0 comments on commit e6b8ba4

Please sign in to comment.