Skip to content

Commit

Permalink
ft2800.py: initialize unknown memory objects - fixes #10916
Browse files Browse the repository at this point in the history
  • Loading branch information
KC9HI committed Oct 31, 2023
1 parent 195f56b commit 1ccc168
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chirp/drivers/ft2800.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ def set_memory(self, mem):
# Empty -> Non-empty, so initialize
_mem.set_raw("\x00" * (_mem.size() // 8))

# initializing unknowns
_mem.unknown1 = (0xFF, 0xFF, 0xFF, 0xFF)
_mem.unknown2 = (0x00, 0x00)
_mem.unknown3 = 0x01
_mem.unknown4 = 0x3C

_mem.freq = mem.freq / 10
_mem.offset = mem.offset / 100000
_mem.duplex = DUPLEX.index(mem.duplex)
Expand Down

0 comments on commit 1ccc168

Please sign in to comment.