Index: firmware/App/Modes/ConsumableSelfTest.c =================================================================== diff -u -r8b73263b38f449dacc0795c67a7cf6240cb79026 -rbea9ae2daffd8f939d22037df07ccaa56653cb19 --- firmware/App/Modes/ConsumableSelfTest.c (.../ConsumableSelfTest.c) (revision 8b73263b38f449dacc0795c67a7cf6240cb79026) +++ firmware/App/Modes/ConsumableSelfTest.c (.../ConsumableSelfTest.c) (revision bea9ae2daffd8f939d22037df07ccaa56653cb19) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2021-2022 Diality Inc. - All Rights Reserved. +* Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file ConsumableSelfTest.c * -* @author (last) Dara Navaei -* @date (last) 05-Jun-2022 +* @author (last) Michael Garthwaite +* @date (last) 19-Jan-2023 * * @author (original) Quang Nguyen * @date (original) 06-Mar-2021 @@ -25,6 +25,7 @@ #include "Reservoirs.h" #include "SelfTests.h" #include "SyringePump.h" +#include "SystemCommMessages.h" #include "Valves.h" /** @@ -91,6 +92,8 @@ *************************************************************************/ void execConsumableSelfTest( void ) { + CONSUMABLE_SELF_TESTS_STATE_T priorSubState = currentConsumableSelfTestState; + switch( currentConsumableSelfTestState ) { case CONSUMABLE_SELF_TESTS_INSTALL_STATE: @@ -157,6 +160,10 @@ break; } + if ( priorSubState != currentConsumableSelfTestState ) + { + SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_SUB_STATE_CHANGE, priorSubState, currentConsumableSelfTestState ); + } // Handle triggered alarm with stop property handleConsumableSelfTestStopRequest(); }