Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rbe83f01a4d54cbd0d92b68cb95a15dcbb06a9a51 -r070554b23739bf16ea2bf9528ebabda1ce0ffeb3 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision be83f01a4d54cbd0d92b68cb95a15dcbb06a9a51) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 070554b23739bf16ea2bf9528ebabda1ce0ffeb3) @@ -117,9 +117,8 @@ // create a message record blankMessage( &msg ); msg.hdr.msgID = MSG_ID_OFF_BUTTON_PRESS; - msg.hdr.payloadLen = 0; -// msg.hdr.payloadLen = 1; -// msg.payload[0] = (U08)promptUser; + msg.hdr.payloadLen = 1; + msg.payload[0] = (U08)promptUser; // serialize the message (w/ sync, CRC, and appropriate CAN padding) msgSize = serializeMessage( msg, data ); @@ -180,7 +179,6 @@ result = addToCommBuffer( COMM_BUFFER_OUT_CAN_HD_ALARM, data, msgSize ); return result; - } /************************************************************************* @@ -222,6 +220,7 @@ return result; } + /************************************************************************* * @brief broadcastAlarmCleared * The broadcastAlarmCleared function constructs an alarm cleared msg to be \n @@ -297,10 +296,37 @@ result = addToCommBuffer( COMM_BUFFER_OUT_CAN_HD_BROADCAST, data, msgSize ); return result; +} +/************************************************************************* + * @brief handleDGCheckIn + * The handleDGCheckIn function handles a check-in from the DG. + * @details + * Inputs : none + * Outputs : check in the DG with the SystemComm module. + * @param message : a pointer to the message to handle + * @return none + *************************************************************************/ +void handleDGCheckIn( MESSAGE_T *message ) +{ + checkInFromDG(); } +/************************************************************************* + * @brief handleUICheckIn + * The handleUICheckIn function handles a check-in from the UI. + * @details + * Inputs : none + * Outputs : check in the UI with the SystemComm module. + * @param message : a pointer to the message to handle + * @return none + *************************************************************************/ +void handleUICheckIn( MESSAGE_T *message ) +{ + checkInFromUI(); +} + /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/