Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -rb7250339a40f180e6241caab5f83cf2c56987abc -rcc8b9ddb9905161ddb0dc2af6bfbf863408669c8 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision b7250339a40f180e6241caab5f83cf2c56987abc) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision cc8b9ddb9905161ddb0dc2af6bfbf863408669c8) @@ -3252,6 +3252,39 @@ } /*********************************************************************//** + * @brief + * The handleSetFansDutyCycleOverrideRequest function handles a + * request to override the fans duty cycle. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleSetFansDutyCycleOverrideRequest( MESSAGE_T *message ) +{ + TEST_OVERRIDE_PAYLOAD_T payload; + BOOL result = FALSE; + + // verify payload length + if ( sizeof( TEST_OVERRIDE_PAYLOAD_T ) == message->hdr.payloadLen ) + { + memcpy( &payload, message->payload, sizeof( TEST_OVERRIDE_PAYLOAD_T ) ); + + if ( FALSE == payload.reset ) + { + result = testSetFansDutyCycleOverride( payload.state.f32 ); + } + else + { + result = testResetFansDutyCycleOverride(); + } + } + + // Respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + +/*********************************************************************//** * @brief * The handleGetDGSoftwareConfigRecord function handles a request to get the DG * software configuration record.