diff --git a/chirp/drivers/baofeng_uv17Pro.py b/chirp/drivers/baofeng_uv17Pro.py index f38507865..adc60766e 100644 --- a/chirp/drivers/baofeng_uv17Pro.py +++ b/chirp/drivers/baofeng_uv17Pro.py @@ -789,10 +789,14 @@ def apply_bankname(setting, obj): _mem.ani.aniid])) dtmfe.append(rs) + if _mem.settings.hangup >= len(LIST_HANGUPTIME): + val = 0 + else: + val = _mem.settings.hangup rs = RadioSetting("settings.hangup", "Hang-up time", RadioSettingValueList(LIST_HANGUPTIME, LIST_HANGUPTIME[ - _mem.settings.hangup])) + val])) dtmfe.append(rs) return top