Skip to content

Commit 599efd3

Browse files
committed
Made default case for unknown functions reply to client.
1 parent 97cda01 commit 599efd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanomodbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ static nmbs_error handle_req_fc(nmbs_t* nmbs) {
18321832
break;
18331833
#endif
18341834
default:
1835-
err = NMBS_EXCEPTION_ILLEGAL_FUNCTION;
1835+
err = send_exception_msg(nmbs, NMBS_EXCEPTION_ILLEGAL_FUNCTION);
18361836
}
18371837

18381838
return err;

0 commit comments

Comments
 (0)