# HG changeset patch # User Angus Ainslie angus@akkea.ca # Date 1592188267 25200 # Sun Jun 14 19:31:07 2020 -0700 # Branch py3 # Node ID b1e01577ff2505de7fcca665bf3d6af296f0f7ca # Parent 2df81982cb1033a0007884e3398e533aea09ccb0 [thd72] The blocks need to be calculated as integers
diff --git a/chirp/drivers/thd72.py b/chirp/drivers/thd72.py --- a/chirp/drivers/thd72.py +++ b/chirp/drivers/thd72.py @@ -244,9 +244,9 @@ rf.has_bank = False rf.has_settings = True rf.valid_tuning_steps = [] - rf.valid_modes = MODES_REV.keys() - rf.valid_tmodes = TMODES_REV.keys() - rf.valid_duplexes = DUPLEX_REV.keys() + rf.valid_modes = list(MODES_REV.keys()) + rf.valid_tmodes = list(TMODES_REV.keys()) + rf.valid_duplexes = list(DUPLEX_REV.keys()) rf.valid_skips = ["", "S"] rf.valid_characters = chirp_common.CHARSET_ALPHANUMERIC rf.valid_name_length = 8 @@ -277,7 +277,7 @@ return sorted(THD72_SPECIAL.keys())
def add_dirty_block(self, memobj): - block = memobj._offset / 256 + block = memobj._offset // 256 if block not in self._dirty_blocks: self._dirty_blocks.append(block) self._dirty_blocks.sort()