Index: firmware/App/Services/SystemCommDD.c =================================================================== diff -u -rcd3af1ebb7396ba3b2bec1d779510d29c30014f4 -r52ded7b22d4b413aa8182f1343e4fbb78e8c3b0a --- firmware/App/Services/SystemCommDD.c (.../SystemCommDD.c) (revision cd3af1ebb7396ba3b2bec1d779510d29c30014f4) +++ firmware/App/Services/SystemCommDD.c (.../SystemCommDD.c) (revision 52ded7b22d4b413aa8182f1343e4fbb78e8c3b0a) @@ -199,6 +199,25 @@ /*********************************************************************//** * @brief + * The checkTooManyBadMsgCRCs function checks for too many bad message CRCs + * within a set period of time. Assumed function is being called when a new + * bad CRC is detected so a new bad CRC will be added to the list. + * @details Inputs: badCRCTimeStamps[], badCRCListIdx, badCRCListCount + * @details Outputs: possibly a "too many bad CRCs" alarm + * @return none + *************************************************************************/ +void checkTooManyBadMsgCRCs( void ) +{ + if ( TRUE == incTimeWindowedCount( TIME_WINDOWED_COUNT_BAD_MSG_CRC ) ) + { + //TODO : define alarm ID + SET_ALARM_WITH_1_U32_DATA( ALARM_ID_DD_COMM_TOO_MANY_BAD_CRCS, 2 ); // 2 for DG + } +} + + +/*********************************************************************//** + * @brief * The getOutBufferID function gets the buffer ID for a given buffer index. * @details Inputs: CAN_OUT_BUFFERS[] * @details Outputs: none @@ -234,7 +253,7 @@ void processReceivedMessage( MESSAGE_T *message ) { // Handle any messages from other sub-systems - //handleIncomingMessage( message ); + handleIncomingMessage( message ); }