Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r94b2c471dc1ed582d59f277321d9f52aac87254d -r7408f6fccdf772fa266c6f4753d7426d2bd49861 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 94b2c471dc1ed582d59f277321d9f52aac87254d) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 7408f6fccdf772fa266c6f4753d7426d2bd49861) @@ -28,6 +28,7 @@ #include "FlowSensors.h" #include "FPGA.h" #include "Heaters.h" +#include "Integrity.h" #include "ModeChemicalDisinfect.h" #include "ModeChemicalDisinfectFlush.h" #include "ModeDrain.h" @@ -4947,4 +4948,36 @@ sendUIResponseMsg( MSG_ID_DG_RO_ONLY_MODE_STATUS_RESPONSE, roMode, rejReason ); } +/*********************************************************************//** + * @brief + * The handleTestHDRAMStatusOverrideRequest function handles a request to + * override the RAM status register. + * @details Inputs: none + * @details Outputs: message handled + * @param message a pointer to the message to handle + * @return none + *************************************************************************/ +void handleTestDGRAMStatusOverrideRequest( 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 = testSetRAMStatusOverride( payload.index, payload.state.u32 ); + } + else + { + result = testResetRAMStatusOverride( payload.index ); + } + } + + // respond to request + sendTestAckResponseMsg( (MSG_ID_T)message->hdr.msgID, result ); +} + /**@}*/