[chirp_devel] [PATCH] [FT8x7] Mimics radio behaviour at memory init and delete

Marco Filippi IZ3GME
Sun Oct 14 10:30:58 PDT 2012


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1350235566 -7200
# Node ID 3ad553c1b546c38efee6a35e02938dce74a38427
# Parent  ee065eabb29678c1591a4c792badb081d690dc8b
[FT8x7] Mimics radio behaviour at memory init and delete
fix bug #325

diff -r ee065eabb296 -r 3ad553c1b546 chirp/ft817.py
--- a/chirp/ft817.py	ven ott 12 13:52:45 2012 -0700
+++ b/chirp/ft817.py	dom ott 14 19:26:06 2012 +0200
@@ -474,9 +474,12 @@
             if wasvalid and not wasused:
                 self._memobj.filled[(mem.number-1) / 8] &= \
                     ~(1 << (mem.number - 1) % 8)
+                _mem.set_raw("\xFF" * (_mem.size() / 8)) # clean up
             self._memobj.visible[(mem.number-1) / 8] &= \
                 ~(1 << (mem.number - 1) % 8)
             return
+        if not wasvalid:
+            _mem.set_raw("\x00" * (_mem.size() / 8)) # clean up
         
         self._memobj.visible[(mem.number - 1) / 8] |= 1 << (mem.number - 1) % 8
         self._memobj.filled[(mem.number - 1) / 8] |= 1 << (mem.number - 1) % 8



More information about the chirp_devel mailing list