[chirp_devel] [PATCH] [id31a] set used bit when creating new memory, clear when deleting. Fixes #269
Tom Hayward
Wed Sep 5 15:20:30 PDT 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1346883546 21600
# Node ID a598b6e654a7bcb0cf63cbaac64e28ce17be040e
# Parent f0df180fc73b148464e8eadba0ef076e5fc23029
[id31a] set used bit when creating new memory, clear when deleting. Fixes #269
diff -r f0df180fc73b -r a598b6e654a7 chirp/id31.py
--- a/chirp/id31.py Wed Sep 05 15:34:36 2012 -0600
+++ b/chirp/id31.py Wed Sep 05 16:19:06 2012 -0600
@@ -262,6 +262,13 @@
bit = (1 << (memory.number % 8))
+ if memory.empty:
+ _usd |= bit
+ self._set_bank(memory.number, None)
+ return
+
+ _usd &= ~bit
+
_set_freq(_mem, memory.freq, memory.offset)
_mem.name = memory.name.ljust(12)[:12]
_mem.rtone = chirp_common.TONES.index(memory.rtone)
More information about the chirp_devel
mailing list