[chirp_devel] [PATCH] [uv-b5] Not in Range Issue with Broadcast FM Presets
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1382646612 14400 # Node ID 66188cafbe52ab16a2d4a706d719fa2e9b863b1a # Parent 72de80dd3e6b0d04baa7f02e5fbbd80dc63b0edc [uv-b5] Not in Range Issue with Broadcast FM Presets Early UV-B5 radios were shipped from the factory with disabled FM presets set to 0xFFFF. Current radios have disabled FM presets set to 0x01AF. This value is not allowed and causes a 'not in range' error.
This patch considers any preset with a value greater than 0x01AE (108.0 MHz) as disabled. Bug #1191
diff -r 72de80dd3e6b -r 66188cafbe52 chirp/uvb5.py --- a/chirp/uvb5.py Mon Oct 21 09:17:19 2013 +0200 +++ b/chirp/uvb5.py Thu Oct 24 16:30:12 2013 -0400 @@ -624,7 +624,7 @@ group.append(fm_preset)
for i in range(0, 16): - if self._memobj.fm_presets[i] != 0xFFFF: + if self._memobj.fm_presets[i] < 0x01AF: used = True preset = self._memobj.fm_presets[i] / 10.0 + 65 else: @@ -721,7 +721,7 @@ if val[0].get_value(): value = int(val[1].get_value() * 10 - 650) else: - value = 0xffff + value = 0x01AF print "Setting fm_presets[%1i] = %s" % (index, value) setting = self._memobj.fm_presets setting[index] = value
participants (1)
-
Jim Unroe