Skip to content

Commit

Permalink
Merge pull request #54 from pseudotronics/Illegal-Function-Default-Case
Browse files Browse the repository at this point in the history
Make Unknown Functions Reply to Client
  • Loading branch information
debevv authored Jun 25, 2024
2 parents 97cda01 + 599efd3 commit 67bd7b2
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 @@ -1832,7 +1832,7 @@ static nmbs_error handle_req_fc(nmbs_t* nmbs) {
break;
#endif
default:
err = NMBS_EXCEPTION_ILLEGAL_FUNCTION;
err = send_exception_msg(nmbs, NMBS_EXCEPTION_ILLEGAL_FUNCTION);
}

return err;
Expand Down

0 comments on commit 67bd7b2

Please sign in to comment.