Skip to content

Commit

Permalink
Fix to server FC handler define
Browse files Browse the repository at this point in the history
  • Loading branch information
debevv committed Jun 14, 2024
1 parent d7ecb2c commit f0a4374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanomodbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0a4374

Please sign in to comment.