[chirp_devel] [PATCH 0 of 2 ] Fix for bug #181 (valid band check bounds)
This two patches are the fix for bug #181 for tip and stable
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1337703831 -7200 # Node ID ec4361ad770faedf0e25f697e9f74a3a80beb475 # Parent 6584d54fd0ba7b63436787f6e31ecdc3e36d4c01 Consider lower bound frequency of each valid_band as valid Fix bug #181
diff -r 6584d54fd0ba -r ec4361ad770f chirp/chirp_common.py --- a/chirp/chirp_common.py mar mag 22 17:57:41 2012 +0200 +++ b/chirp/chirp_common.py mar mag 22 18:23:51 2012 +0200 @@ -830,7 +830,7 @@ if self.valid_bands: valid = False for lo, hi in self.valid_bands: - if mem.freq > lo and mem.freq < hi: + if lo <= mem.freq < hi: valid = True break if not valid:
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1337704290 -7200 # Branch stable_0_2_x # Node ID 0d1291e76df906be188060ce5dfd9de36352965c # Parent 24a6927c0698c906f780ef87e1220932ed187ed9 Consider lower bound frequency of each valid_band as valid Fix bug #181
diff -r 24a6927c0698 -r 0d1291e76df9 chirp/chirp_common.py --- a/chirp/chirp_common.py lun mag 21 14:38:53 2012 -0600 +++ b/chirp/chirp_common.py mar mag 22 18:31:30 2012 +0200 @@ -866,7 +866,7 @@ if rf.valid_bands: valid = False for lo, hi in rf.valid_bands: - if mem.freq > lo and mem.freq < hi: + if lo <= mem.freq < hi: valid = True break if not valid:
participants (2)
-
Dan Smith
-
Marco Filippi IZ3GME