# HG changeset patch # User Dan Smith dsmith@danplanet.com # Date 1331687014 25200 # Node ID e17248d93b8e2978df987346e1be8fa38f89c075 # Parent 4df6f2246d71dac29ff00e7f92a080002e0d9394 [vx8] Remove bank memberships when deleting a memory
diff -r 4df6f2246d71 -r e17248d93b8e chirp/vx8.py --- a/chirp/vx8.py Tue Mar 13 17:35:04 2012 -0700 +++ b/chirp/vx8.py Tue Mar 13 18:03:34 2012 -0700 @@ -237,11 +237,17 @@ mem.set_raw("\x00" * (mem.size() / 8)) mem.unknown1 = 0x05
+ def _debank(self, mem): + bm = self.get_bank_model() + for bank in bm.get_memory_banks(mem): + bm.remove_memory_from_bank(mem, bank) + def set_memory(self, mem): flag = self._memobj.flag[mem.number-1] was_empty = flag.flag == 0 if mem.empty: flag.flag = 0 + self._debank(mem) return
if mem.freq < 30000000 or \