Index: firmware/App/Services/AlarmMgmt.c =================================================================== diff -u -r9feea867113c62088f0ce91750127972dbd9bf53 -rcf94c3059b220c787cc8eabc691940967c1537e1 --- firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision 9feea867113c62088f0ce91750127972dbd9bf53) +++ firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision cf94c3059b220c787cc8eabc691940967c1537e1) @@ -82,7 +82,9 @@ /// Alarm user recovery actions enabled flags. static BOOL alarmUserRecoveryActionEnabled[ NUMBER_OF_ALARM_USER_ACTIONS ]; -static U32 alarmAudioVolumeLevel = 3; //MIN_ALARM_VOLUME_ATTENUATION; ///< Set alarm audio volume attenuation level (0..4 - lower level = higher gain). +static U32 alarmAudioVolumeLevel = 3; //MIN_ALARM_VOLUME_ATTENUATION; ///< Set alarm audio volume attenuation level (0..4 - lower level = higher gain). + +static BOOL allowNewTreatment = TRUE; ///< Allow new treatment persistent flag. // ********** private function prototypes ********** @@ -149,7 +151,9 @@ alarmStatus.noEndTreatment = FALSE; alarmStatus.noNewTreatment = FALSE; alarmStatus.noDialRecirc = FALSE; - alarmStatus.usrACKRequired = FALSE; + alarmStatus.usrACKRequired = FALSE; + + allowNewTreatment = TRUE; } /*********************************************************************//** @@ -569,6 +573,19 @@ alarmAudioVolumeLevel = MAX_ALARM_VOLUME_LEVEL - volumeLevel; } } + +/*********************************************************************//** + * @brief +* The getAllowNewTreatmentStatus function gets the persistent allow new +* treatment status flag. +* @details Inputs: allowNewTreatment +* @details Outputs: none +* @return allowNewTreatment +*************************************************************************/ +BOOL getAllowNewTreatmentStatus( void ) +{ + return allowNewTreatment; +} /*********************************************************************//** * @brief @@ -928,6 +945,11 @@ noEndTreatment = TRUE; } + if ( TRUE == noNewTreatment ) + { + allowNewTreatment = FALSE; + } + // Set updated alarm flags alarmStatus.systemFault = systemFault; alarmStatus.stop = stop;