Index: firmware/App/Services/TDInterface.c =================================================================== diff -u -r008d18e14db9f73782072e42a71ff364915c5f83 -r29d3293a57a9a4d6a3b9aae2c41ea33f9cfde2a7 --- firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision 008d18e14db9f73782072e42a71ff364915c5f83) +++ firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision 29d3293a57a9a4d6a3b9aae2c41ea33f9cfde2a7) @@ -678,13 +678,11 @@ case DD_CMD_START_DISINFECT_FLUSH: case DD_CMD_START_DISINFECT_HEAT_CITRIC: case DD_CMD_START_DISINFECT_SUBSTITUTION_PORT: - response.rejectCode = - DD_CMD_REQUEST_REJECT_REASON_INVALID_PARAMETER; + response.rejectCode = DD_CMD_REQUEST_REJECT_REASON_INVALID_PARAMETER; break; default: - response.rejectCode = - DD_CMD_REQUEST_REJECT_REASON_INVALID_PARAMETER; + response.rejectCode = DD_CMD_REQUEST_REJECT_REASON_INVALID_PARAMETER; break; } @@ -696,104 +694,13 @@ } } - sendMessage( MSG_ID_DD_COMMAND_RESPONSE, - COMM_BUFFER_OUT_CAN_DD_2_TD, - (U08 *)&response, - sizeof( DD_CMD_RESPONSE_T ) ); + sendMessage( MSG_ID_DD_COMMAND_RESPONSE, COMM_BUFFER_OUT_CAN_DD_2_TD, + (U08 *)&response, sizeof( DD_CMD_RESPONSE_T ) ); return result; } -/*********************************************************************//** - * @brief - * The handleTDRequestDDFlush function handles a DD flush request from TD. - * @details \b Inputs: none - * @details \b Outputs: DD flush request processed - * @param message Pointer to the received message - * @return TRUE if request is accepted, FALSE otherwise. - *************************************************************************/ -BOOL handleTDRequestDDFlush( MESSAGE_T *message ) -{ - BOOL result = FALSE; - if ( message->hdr.payloadLen == sizeof(U32) ) - { - BOOL startingDDFlush; - - memcpy( &startingDDFlush, message->payload, sizeof(U32) ); - - if ( TRUE == startingDDFlush ) - { - result = startDDFlush(); - } - else - { - ;// DO nothing - } - } - - // Respond to request - sendAckResponseMsg( (MSG_ID_T)message->hdr.msgID, COMM_BUFFER_OUT_CAN_DD_2_TD, result ); - - return result; -} - -/*********************************************************************//** - * @brief - * The handleTDRequestDDHeatDisinfect function handles a DD heat disinfection - * request from TD. - * @details \b Inputs: none - * @details \b Outputs: DD heat disinfection request processed - * @param message Pointer to the received message - * @return TRUE if request is accepted, FALSE otherwise. - *************************************************************************/ -BOOL handleTDRequestDDHeatDisinfect( MESSAGE_T *message ) -{ - BOOL status = FALSE; - - if ( message->hdr.payloadLen == sizeof(U32) ) - { - status = startDDHeatDisinfect( ); - } - - sendAckResponseMsg( (MSG_ID_T)message->hdr.msgID, COMM_BUFFER_OUT_CAN_DD_2_TD, status ); - - return status; -} - -/*********************************************************************//** - * @brief - * The handleTDRequestDDHeatDisinfectActiveCool function handles a DD heat - * disinfection active cool request from TD. - * @details \b Inputs: none - * @details \b Outputs: DD heat disinfection active cool request processed - * @param message Pointer to the received message - * @return TRUE if request is accepted, FALSE otherwise. - *************************************************************************/ -BOOL handleTDRequestDDHeatDisinfectActiveCool( MESSAGE_T *message ) -{ - BOOL status = FALSE; - - if ( message->hdr.payloadLen == sizeof(U32) ) - { - BOOL startingDDHeatDisinfect; - - memcpy( &startingDDHeatDisinfect, message->payload, sizeof(U32) ); - - if ( TRUE == startingDDHeatDisinfect ) - { - status = startDDHeatDisinfectActiveCool( ); - } - else - { - ;//do nothing - } - } - - sendAckResponseMsg( (MSG_ID_T)message->hdr.msgID, COMM_BUFFER_OUT_CAN_DD_2_TD, status ); - - return status; -} /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/