# HG changeset patch # User Rick DeWitt # Date 1608591261 28800 # Mon Dec 21 14:54:21 2020 -0800 # Node ID 2c5859e0e3ad2d851d700d14f63656433a3574ae # Parent 52a228182876f1d79d11684d00f9c5dffd503c6c [th_uv8000] Allow scan priority channel 0 (OFF). Issue #8339 diff -r 52a228182876 -r 2c5859e0e3ad chirp/drivers/th_uv8000.py --- a/chirp/drivers/th_uv8000.py Sun Dec 20 14:55:58 2020 -0800 +++ b/chirp/drivers/th_uv8000.py Mon Dec 21 14:54:21 2020 -0800 @@ -1,5 +1,6 @@ # Copyright 2019: Rick DeWitt (RJD), # Version 1.0 for TYT-UV8000D/E +# 1.1 Fixes issue #8339, Priority chan OFF (0) # Thanks to Damon Schaefer (K9CQB) and the Loudoun County, VA ARES # club for the donated radio. # And thanks to Ian Harris (VA3IHX) for decoding the memory map. @@ -1250,10 +1251,8 @@ scn.append(rset) val = _sets.prichan - if val <= 0: - val = 1 - rx = RadioSettingValueInteger(1, 128, val) - rset = RadioSetting("setstuf.prichan", "Priority Channel", rx) + rx = RadioSettingValueInteger(0, 128, val) + rset = RadioSetting("setstuf.prichan", "Priority Channel (0:Off)", rx) scn.append(rset) # FM Broadcast Settings