Skip to content

Commit

Permalink
dupe() memory in set_memory() for memcache
Browse files Browse the repository at this point in the history
The memory passed to set_memory() is frozen, so if it's saved in
memcache, the next time you try to change the memory, you'll get
a lot of "fix this driver!" warnings from memedit and friends.
  • Loading branch information
W8BSD authored and kk7ds committed Jun 27, 2023
1 parent d7b82e4 commit e178324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chirp/drivers/kenwood_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def set_memory(self, memory):
memory.name))
if not iserr(r2):
memory.name = memory.name.rstrip()
self._memcache[memory.number] = memory
self._memcache[memory.number] = memory.dupe()
else:
raise errors.InvalidDataError("Radio refused name %i: %s" %
(memory.number,
Expand Down

0 comments on commit e178324

Please sign in to comment.