Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r0c66a3534801f2ba380e95b732e05b7cfee21772 -r2c08db070a6e09306caf461e7aceeb53097fd995 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 0c66a3534801f2ba380e95b732e05b7cfee21772) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 2c08db070a6e09306caf461e7aceeb53097fd995) @@ -2310,14 +2310,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; @@ -2328,7 +2328,7 @@ memcpy( &payLoad, message->payload, sizeof( F32 ) ); - result = testSetTargetDrainPumpOutletPressure( payLoad ); + result = testSetTargetDrainPumpOutletFlowLPM( payLoad ); } /* respond to request */ sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); @@ -4245,6 +4245,7 @@ // respond to request sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); } + /*********************************************************************//** * @brief * The handleTestDGFillIntegratedVolumeOverrideRequest function handles a request @@ -4277,4 +4278,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 ); +} + /**@}*/