Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r6330949b9dd72e81c3a8405617f27df98acfc3e6 -r9663d70ce482c819bb67cf0724a6a88009df49cc --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 6330949b9dd72e81c3a8405617f27df98acfc3e6) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 9663d70ce482c819bb67cf0724a6a88009df49cc) @@ -5164,4 +5164,32 @@ // respond to request sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); } + +/*********************************************************************//** + * @brief + * The handleTestRunModeFillForCalibrationCheck function handles a request + * to run the mode fill for calibration check (0 = prime, 1 = bicarb test, + * 2 = acid test) + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestRunModeFillForCalibrationCheck( MESSAGE_T* message ) +{ + BOOL result = FALSE; + + if ( sizeof(U32) == message->hdr.payloadLen ) + { + U32 modeFillForCalibrationState; + + memcpy( &modeFillForCalibrationState, message->payload, sizeof(U32) ); + + result = testSetModeFillForCal( modeFillForCalibrationState ); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + /**@}*/