Index: firmware/App/Services/SystemComm.c =================================================================== diff -u -r94b2c471dc1ed582d59f277321d9f52aac87254d -r7408f6fccdf772fa266c6f4753d7426d2bd49861 --- firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 94b2c471dc1ed582d59f277321d9f52aac87254d) +++ firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 7408f6fccdf772fa266c6f4753d7426d2bd49861) @@ -1364,6 +1364,10 @@ handleDGROStatusRequest( message ); break; + case MSG_ID_DG_RAM_STATUS_OVERRIDE: + handleTestDGRAMStatusOverrideRequest( message ); + break; + default: // TODO - unrecognized message ID received - ignore break; 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 ); +} + /**@}*/ Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -r94b2c471dc1ed582d59f277321d9f52aac87254d -r7408f6fccdf772fa266c6f4753d7426d2bd49861 --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 94b2c471dc1ed582d59f277321d9f52aac87254d) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 7408f6fccdf772fa266c6f4753d7426d2bd49861) @@ -520,6 +520,10 @@ // MSG_ID_DG_DIALIN_RO_ONLY_MODE_STATUS_REQUEST void handleDGROStatusRequest( MESSAGE_T* message ); +// MSG_ID_DG_RAM_STATUS_OVERRIDE +void handleTestDGRAMStatusOverrideRequest( MESSAGE_T* message ); + + /**@}*/ #endif