##
## 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
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:
- self.putx(0, 16, ['Uknown command: %s (reply: %s)!' % (c, r)])
+ self.putx(0, 16, ['Unknown command: %s (reply: %s)!' % (c, r)])
def decode(self, ss, es, data):
ptype, mosi, miso = data
def decode(self, ss, es, data):
ptype, mosi, miso = data