Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rf0487091f8a986c03e0152e12610b87363b356c9 -r4b9ae4e44d44ee6577fec4c8b75aa160fea04cc7 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision f0487091f8a986c03e0152e12610b87363b356c9) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 4b9ae4e44d44ee6577fec4c8b75aa160fea04cc7) @@ -2311,14 +2311,14 @@ /************************************************************************* * @brief - * The handleSetDrainPumpTargetOutletPressure function handles a - * request to set the drain pump outlet pressure. + * The handleSetDrainPumpTargetOutletFlowLPM function handles a + * request to set the drain pump outlet flow in L/min. * @details Inputs: none * @details Outputs: message handled * @param message a pointer to the message to handle * @return none *************************************************************************/ -void handleSetDrainPumpTargetOutletPressure( MESSAGE_T *message ) +void handleSetDrainPumpTargetOutletFlowLPM( MESSAGE_T *message ) { BOOL result = 0; @@ -2329,7 +2329,7 @@ memcpy( &payLoad, message->payload, sizeof( F32 ) ); - result = testSetTargetDrainPumpOutletPressure( payLoad ); + result = testSetTargetDrainPumpOutletFlowLPM( payLoad ); } /* respond to request */ sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); @@ -4247,6 +4247,7 @@ // respond to request sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); } + /*********************************************************************//** * @brief * The handleTestDGFillIntegratedVolumeOverrideRequest function handles a request @@ -4279,4 +4280,36 @@ sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); } +/*********************************************************************//** + * @brief + * The handleTestDGHeatersDutyCycleOverrideRequest function handles a request + * to override the heaters duty cycle + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGHeatersDutyCycleOverrideRequest( MESSAGE_T *message ) +{ + TEST_OVERRIDE_ARRAY_PAYLOAD_T payload; + BOOL result = FALSE; + + // verify payload length + if ( sizeof( TEST_OVERRIDE_ARRAY_PAYLOAD_T ) == message->hdr.payloadLen ) + { + memcpy( &payload, message->payload, sizeof( TEST_OVERRIDE_ARRAY_PAYLOAD_T ) ); + if ( FALSE == payload.reset ) + { + result = testSetHeaterDutyCycleOverride( payload.index, payload.state.f32 ); + } + else + { + result = testResetHeaterDutyCycleOverride( payload.index ); + } + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + /**@}*/