Index: firmware/App/Modes/TreatmentStop.c =================================================================== diff -u -rb20421d84b9049977c04f4752f4fc5697425f25c -r1f91b5a53bda942b0967817bbd5e68a499dbf816 --- firmware/App/Modes/TreatmentStop.c (.../TreatmentStop.c) (revision b20421d84b9049977c04f4752f4fc5697425f25c) +++ firmware/App/Modes/TreatmentStop.c (.../TreatmentStop.c) (revision 1f91b5a53bda942b0967817bbd5e68a499dbf816) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2020-2022 Diality Inc. - All Rights Reserved. +* Copyright (c) 2020-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 TreatmentStop.c * -* @author (last) Dara Navaei -* @date (last) 10-Aug-2022 +* @author (last) Michael Garthwaite +* @date (last) 19-Jan-2023 * * @author (original) Sean * @date (original) 15-Jan-2020 @@ -218,6 +218,8 @@ *************************************************************************/ void execTreatmentStop( void ) { + TREATMENT_STOP_STATE_T priorSubState = currentTxStopState; + // Execute treatment stop sub-mode state machine switch ( currentTxStopState ) { @@ -242,6 +244,10 @@ break; } + if ( priorSubState != currentTxStopState ) + { + SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_SUB_STATE_CHANGE, priorSubState, currentTxStopState ); + } // Broadcast treatment stop status publishTreatmentStopData(); }