Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r8bcb6b1342198d6d87d1350b2ca61a932a4ff006 -r85d0f84a10f01f959796e59a83c3a86c3eff10f7 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 8bcb6b1342198d6d87d1350b2ca61a932a4ff006) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 85d0f84a10f01f959796e59a83c3a86c3eff10f7) @@ -8,7 +8,7 @@ * @file SystemCommMessages.c * * @author (last) Dara Navaei -* @date (last) 01-Mar-2024 +* @date (last) 16-Sep-2024 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -1265,14 +1265,14 @@ /*********************************************************************//** * @brief - * The handleStartStopDGHeatDisinfect function handles a request start or - * stop DG heat disifect mode. + * The handleStartStopDGActiveCoolHeatDisinfect function handles a request start or + * stop DG active cool heat disifect mode. * @details Inputs: none * @details Outputs: message handled * @param message: a pointer to the message to handle * @return result *************************************************************************/ -BOOL handleStartStopDGHeatDisinfect( MESSAGE_T *message ) +BOOL handleStartStopDGActiveCoolHeatDisinfect( MESSAGE_T *message ) { BOOL status = FALSE; @@ -1284,7 +1284,8 @@ if ( TRUE == startingDGHeatDisinfect ) { - status = startDGHeatDisinfect(); + setActiveOrPassiveHeatDisinfectStatus( FALSE ); + status = startDGHeatDisinfect( FALSE ); } else { @@ -1727,7 +1728,7 @@ * start or stop DG heat disinfect active cool mode. * @details Inputs: none * @details Outputs: message handled - * @param message: a pointer to the message to handle + * @param message a pointer to the message to handle * @return result *************************************************************************/ void handleStartStopDGHeatDisinfectActiveCool( MESSAGE_T* message ) @@ -1968,7 +1969,29 @@ serializeMessage( msg, COMM_BUFFER_OUT_CAN_DG_2_HD, ACK_REQUIRED ); } +/*********************************************************************//** + * @brief + * The handleStartStopDGPassiveHeatDisifnect function handles a request to + * start or stop DG passive cool heat disinfect. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return result + *************************************************************************/ +void handleStartStopDGPassiveCoolHeatDisifnect( MESSAGE_T* message ) +{ + BOOL status = FALSE; + if ( message->hdr.payloadLen == sizeof(U32) ) + { + setActiveOrPassiveHeatDisinfectStatus( TRUE ); + status = startDGHeatDisinfect( TRUE ); + } + + sendAckResponseMsg( (MSG_ID_T)message->hdr.msgID, COMM_BUFFER_OUT_CAN_DG_2_HD, status ); +} + + // *********************************************************************** // **************** Message Handling Helper Functions ******************** // ***********************************************************************