Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r0bd1acff7222327c97897b4f9ab91bcc1d9d5816 -r208ceefa8e8b1cc30feb93be771ced6d313e6995 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 0bd1acff7222327c97897b4f9ab91bcc1d9d5816) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 208ceefa8e8b1cc30feb93be771ced6d313e6995) @@ -7119,4 +7119,54 @@ return result; } +/*********************************************************************//** +* @brief +* The handleSetBloodLeak2EmbeddedMode function handles a request to set the HD +* blood leak to embedded mode. +* @details Inputs: none +* @details Outputs: message handled +* @param message a pointer to the message to handle +* @return none +*************************************************************************/ +void handleSetBloodLeak2EmbeddedMode( MESSAGE_T* message ) +{ + BOOL result = FALSE; + + // verify payload length + if ( 0 == message->hdr.payloadLen ) + { + result = testSetBloodLeak2EmbeddedMode(); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + +/*********************************************************************//** +* @brief +* The handleSetBloodEmbeddedModeCommand function handles a request to set the HD +* blood leak to embedded mode command. +* @details Inputs: none +* @details Outputs: message handled +* @param message a pointer to the message to handle +* @return none +*************************************************************************/ +void handleSetBloodEmbeddedModeCommand( MESSAGE_T* message ) +{ + U08 command; + + BOOL result = FALSE; + + // verify payload length + if ( sizeof(U08) == message->hdr.payloadLen ) + { + memcpy(&command, message->payload, sizeof(U08)); + + result = testSetBloodLeakEmbeddedModeCommand( command ); + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + /**@}*/