diff --git a/README.md b/README.md index c1fb803..82bee1a 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,6 @@ Please refer to `examples/arduino/README.md` for more info about building and ru - `NMBS_CLIENT_DISABLED` to disable all client code - `NMBS_SERVER_DISABLED` to disable all server code - To disable individual server callbacks, define the following: - - `NMBS_SERVER_READ_COILS_DISABLED` - `NMBS_SERVER_READ_COILS_DISABLED` - `NMBS_SERVER_READ_DISCRETE_INPUTS_DISABLED` - `NMBS_SERVER_READ_HOLDING_REGISTERS_DISABLED` diff --git a/nanomodbus.c b/nanomodbus.c index 1cbcd92..22764de 100644 --- a/nanomodbus.c +++ b/nanomodbus.c @@ -840,6 +840,7 @@ static nmbs_error handle_req_fc(nmbs_t* nmbs) { err = handle_read_coils(nmbs); break; #endif + #ifndef NMBS_SERVER_READ_DISCRETE_INPUTS_DISABLED case 2: err = handle_read_discrete_inputs(nmbs);