Index: firmware/App/Modes/TreatmentStop.c =================================================================== diff -u -r5d9c5362b537331248dc592e05b6b016267eb6d3 -r75e1ae332d1446dddf9b8d4ce6e8317449c57d67 --- firmware/App/Modes/TreatmentStop.c (.../TreatmentStop.c) (revision 5d9c5362b537331248dc592e05b6b016267eb6d3) +++ firmware/App/Modes/TreatmentStop.c (.../TreatmentStop.c) (revision 75e1ae332d1446dddf9b8d4ce6e8317449c57d67) @@ -7,8 +7,8 @@ * * @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 @@ -226,6 +226,8 @@ *************************************************************************/ void execTreatmentStop( void ) { + TREATMENT_STOP_STATE_T priorSubState = currentTxStopState; + // Execute treatment stop sub-mode state machine switch ( currentTxStopState ) { @@ -250,6 +252,10 @@ break; } + if ( priorSubState != currentTxStopState ) + { + SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_SUB_STATE_CHANGE, priorSubState, currentTxStopState ); + } // Broadcast treatment stop status publishTreatmentStopData(); }