Index: firmware/App/Services/AlarmMgmt.c =================================================================== diff -u -rac05209d7b6c65b22359754eced5ad2672d3092a -rab529a77ce03051a5940ee59b7542837778f8788 --- firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision ac05209d7b6c65b22359754eced5ad2672d3092a) +++ firmware/App/Services/AlarmMgmt.c (.../AlarmMgmt.c) (revision ab529a77ce03051a5940ee59b7542837778f8788) @@ -83,7 +83,7 @@ /// alarm user recovery actions enabled flags. static BOOL alarmUserRecoveryActionEnabled[ NUMBER_OF_ALARM_USER_ACTIONS ]; -static U32 alarmAudioVolumeLevel = 2; //MAX_ALARM_VOLUME_LEVEL; ///< Set alarm audio volume level (0..7). +static U32 alarmAudioVolumeLevel = 3; //MIN_ALARM_VOLUME_ATTENUATION; ///< Set alarm audio volume attenuation level (0..4 - lower level = higher gain). // ********** private function prototypes ********** @@ -560,14 +560,14 @@ * The setAlarmAudioVolume function sets the current alarm audio volume level. * @details Inputs: none * @details Outputs: alarmAudioVolumeLevel -* @param volumeLevel level of volume requested (0..7) +* @param volumeLevel level of volume requested (1..5) * @return none *************************************************************************/ void setAlarmAudioVolume( U32 volumeLevel ) { - if ( volumeLevel <= MAX_ALARM_VOLUME_LEVEL ) - { - alarmAudioVolumeLevel = volumeLevel; + if ( ( volumeLevel > 0 ) && ( volumeLevel <= MAX_ALARM_VOLUME_LEVEL ) ) + { // convert volume level to attenuation level + alarmAudioVolumeLevel = MAX_ALARM_VOLUME_LEVEL - volumeLevel; } }