Skip to content

Commit

Permalink
tdh8.py: fix driver bug - (2 of 3) - #11363
Browse files Browse the repository at this point in the history
Partially filled memory names must be padded with 0x00. 0xFF is only
valid when the entire name field is empty (but 0x00 is acceptable as
well).
  • Loading branch information
KC9HI authored and kk7ds committed Jun 6, 2024
1 parent 4217501 commit add22e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chirp/drivers/tdh8.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ def set_memory(self, mem):
try:
_nam.name[i] = mem.name[i]
except IndexError:
_nam.name[i] = "\xFF"
_nam.name[i] = "\x00"

txtone, rxtone = chirp_common.split_tone_encode(mem)

Expand Down

0 comments on commit add22e2

Please sign in to comment.