Index: firmware/App/Services/SystemComm.c =================================================================== diff -u -r4c8fb9738f785e8c786e8323d7327aa11d18ceb9 -rbe3d086f89fdf19df9330b70c5575a302817141f --- firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision 4c8fb9738f785e8c786e8323d7327aa11d18ceb9) +++ firmware/App/Services/SystemComm.c (.../SystemComm.c) (revision be3d086f89fdf19df9330b70c5575a302817141f) @@ -761,21 +761,21 @@ } } - // Only alarm on DG comm loss while in the treatment workflow - if ( MODE_PRET == opMode || MODE_TREA == opMode || MODE_POST == opMode ) + if ( TRUE == didTimeout( timeOfLastDGCheckIn, DG_COMM_TIMEOUT_IN_MS ) ) { - if ( TRUE == didTimeout( timeOfLastDGCheckIn, DG_COMM_TIMEOUT_IN_MS ) ) - { #ifndef RUN_WITHOUT_DG + // Only alarm on DG comm loss while in the treatment workflow + if ( MODE_PRET == opMode || MODE_TREA == opMode || MODE_POST == opMode ) + { activateAlarmNoData( ALARM_ID_DG_COMM_TIMEOUT ); - dgIsCommunicating = FALSE; -#endif } + else // Otherwise clear the alarm + { + clearAlarmCondition( ALARM_ID_DG_COMM_TIMEOUT ); + } + dgIsCommunicating = FALSE; +#endif } - else // Otherwise clear the alarm - { - clearAlarmCondition( ALARM_ID_DG_COMM_TIMEOUT ); - } } }