# HG changeset patch # User Michael Lippold michael.lippold@smartacus.net # Date 1506834554 25200 # Sat Sep 30 22:09:14 2017 -0700 # Node ID 0fe719b467825b41c85b080a2aebcfc80ede25c4 # Parent c56244c58fe85688ef0da20a3f7bfebc0f447e6c [id880] Adjust multiplier table implementation to prevent CL ERR when updating radio. Fixes #4871
diff -r c56244c58fe8 -r 0fe719b46782 chirp/drivers/id880.py --- a/chirp/drivers/id880.py Mon Jul 10 17:45:50 2017 -0400 +++ b/chirp/drivers/id880.py Sat Sep 30 22:09:14 2017 -0700 @@ -144,7 +144,7 @@
def _encode_freq(freq): - for i, step in reversed(list(enumerate(FREQ_MULTIPLIER))): + for i, step in list(enumerate(FREQ_MULTIPLIER)): if freq % step == 0: return freq / step, i raise ValueError("%d cannot be factored by multiplier table." % freq)