Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rb8f298547eb578000b3ff3cf55732fda7a689ce0 -r5c608ff3680b15c3ffbb6d486194152d6fb06944 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision b8f298547eb578000b3ff3cf55732fda7a689ce0) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 5c608ff3680b15c3ffbb6d486194152d6fb06944) @@ -4312,4 +4312,27 @@ sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); } +void handleDGRTCstatusOverrideRequest( MESSAGE_T * message ) +{ + TEST_OVERRIDE_PAYLOAD_T payload; + BOOL result = FALSE; + + // Verify payload length + if ( sizeof(TEST_OVERRIDE_PAYLOAD_T) == message->hdr.payloadLen ) + { + memcpy( &payload, message->payload, sizeof(TEST_OVERRIDE_PAYLOAD_T) ); + if ( FALSE == payload.reset ) + { + result = testSetRTCstatus( payload.state.u32 ); + } + else + { + result = testResetRTCstatus(); + } + } + + // Respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + /**@}*/