diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-09-08 11:54:25 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-09-08 11:54:25 +0200 |
commit | 04ff49263b0a462250d2301e6d4d17db5904a8d3 (patch) | |
tree | 9f9c84cae5619b308d7d7ce4b228bd16835bdfd8 /decoders | |
parent | 4ef0ff313b3ac48d585f581593738c1a3e607f26 (diff) | |
download | libsigrokdecode-04ff49263b0a462250d2301e6d4d17db5904a8d3.tar.gz libsigrokdecode-04ff49263b0a462250d2301e6d4d17db5904a8d3.zip |
rfm12: Avoid using the Python 'range' keyword as variable.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/rfm12/pd.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/decoders/rfm12/pd.py b/decoders/rfm12/pd.py index c82a898..bacd8b1 100644 --- a/decoders/rfm12/pd.py +++ b/decoders/rfm12/pd.py @@ -264,17 +264,17 @@ class Decoder(srd.Decoder): else: self.advance_ann(5, 2) - range = (cmd[1] & 0x30) >> 4 + range_limit = (cmd[1] & 0x30) >> 4 FREQ_TABLE = [0.0, 2.5, 5.0, 7.5] freq_delta = FREQ_TABLE[(self.last_config & 0x30) >> 4] - if range == 0: + if range_limit == 0: self.putx(0, 2, ['Range: No limit']) - elif range == 1: + elif range_limit == 1: self.putx(0, 2, ['Range: +/-%dkHz' % (15 * freq_delta)]) - elif range == 2: + elif range_limit == 2: self.putx(0, 2, ['Range: +/-%dkHz' % (7 * freq_delta)]) - elif range == 3: + elif range_limit == 3: self.putx(0, 2, ['Range: +/-%dkHz' % (3 * freq_delta)]) if (cmd[1] & 0x30) != (self.last_afc & 0x30): |