##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
self.describe_bits(bits, NAMES)
self.describe_changed_bits(bits, old_bits, NAMES)
self.describe_bits(bits, NAMES)
self.describe_changed_bits(bits, old_bits, NAMES)
- FREQUENCIES = ['Reserved', '433', '868', '912']
+ FREQUENCIES = ['315', '433', '868', '915']
f = FREQUENCIES[(cmd[1] & 0x30) >> 4] + 'MHz'
self.putx(1, 2, ['Frequency: ' + f, f])
if cmd[1] & 0x30 != self.last_config & 0x30:
f = FREQUENCIES[(cmd[1] & 0x30) >> 4] + 'MHz'
self.putx(1, 2, ['Frequency: ' + f, f])
if cmd[1] & 0x30 != self.last_config & 0x30:
FREQ_TABLE = [0.0, 2.5, 5.0, 7.5]
freq_delta = FREQ_TABLE[(self.last_config & 0x30) >> 4]
FREQ_TABLE = [0.0, 2.5, 5.0, 7.5]
freq_delta = FREQ_TABLE[(self.last_config & 0x30) >> 4]
self.putx(0, 2, ['Range: +/-%dkHz' % (3 * freq_delta)])
if (cmd[1] & 0x30) != (self.last_afc & 0x30):
self.putx(0, 2, ['Range: +/-%dkHz' % (3 * freq_delta)])
if (cmd[1] & 0x30) != (self.last_afc & 0x30):
self.mosi_bytes, self.miso_bytes = [], []
self.mosi_bits, self.miso_bits = [], []
self.mosi_bytes, self.miso_bytes = [], []
self.mosi_bits, self.miso_bits = [], []