We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e7138 commit 020d2d5Copy full SHA for 020d2d5
src/xcp.c
@@ -955,7 +955,11 @@ void Xcp_DispatchCommand(Xcp_PduType const * const pdu) {
955
#if XCP_ENABLE_STATISTICS == XCP_ON
956
Xcp_State.statistics.ctosReceived++;
957
#endif /* XCP_ENABLE_STATISTICS */
958
- Xcp_ServerCommands[UINT8(0xff) - cmd](pdu);
+ if (cmd < 0xc8) {
959
+ Xcp_CommandNotImplemented_Res(pdu);
960
+ } else {
961
+ Xcp_ServerCommands[UINT8(0xff) - cmd](pdu);
962
+ }
963
}
964
} else { /* not connected. */
965
0 commit comments