diff --git a/nanomodbus.c b/nanomodbus.c index 6898889..0a2bb3b 100644 --- a/nanomodbus.c +++ b/nanomodbus.c @@ -1760,7 +1760,7 @@ static nmbs_error handle_req_fc(nmbs_t* nmbs) { nmbs_error err = NMBS_ERROR_NONE; switch (nmbs->msg.fc) { -#ifndef NMBS_SERVER_WRITE_MULTIPLE_COILS_DISABLED +#ifndef NMBS_SERVER_READ_COILS_DISABLED case 1: err = handle_read_coils(nmbs); break;