Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rd3926e5817813a9588b77f6c382940176a5feedc -rd32847d87534b3273deb7362f598aba60877e7b8 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision d3926e5817813a9588b77f6c382940176a5feedc) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision d32847d87534b3273deb7362f598aba60877e7b8) @@ -1386,6 +1386,41 @@ } /*********************************************************************//** +* @brief +* The handleStartStopDGChemicalDisinfectFlush function handles a request to start +* or stop DG chemical disinfect flush mode. +* @details Inputs: none +* @details Outputs: message handled +* @param message a pointer to the message to handle +* @return none +*************************************************************************/ +BOOL handleStartStopDGChemicalDisinfectFlush( MESSAGE_T *message ) +{ + BOOL result = FALSE; + + if ( message->hdr.payloadLen == sizeof(BOOL) ) + { + BOOL startingDGChemicalDisinfectFlush; + + memcpy( &startingDGChemicalDisinfectFlush, message->payload, sizeof(BOOL) ); + + if ( TRUE == startingDGChemicalDisinfectFlush ) + { + result = startDGChemicalDisinfectFlush(); + } + else + { + result = stopChemicalDisinfectFlush(); + } + } + + // Respond to request + sendAckResponseMsg( (MSG_ID_T)message->hdr.msgID, COMM_BUFFER_OUT_CAN_DG_2_HD, result ); + + return result; +} + +/*********************************************************************//** * @brief * The handleTestSetOpModeRequest function handles a request to set the * DG operation mode.