[chirp_devel] [PATCH] [ft8x7] Change used-valid logic to display non valid but used memories

Marco Filippi IZ3GME
Sun Apr 21 00:46:47 PDT 2013


# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1366530326 -7200
# Node ID f9845c92c72ae9710f27b2025860e943bbe0cab0
# Parent  1c6d5231067832e0624eb5306af5e4c622130f86
[ft8x7] Change used-valid logic to display non valid but used memories
It seem there's another program out there that set used bit without setting
valid one, even if this seems to be illogic the radio display them as good.
We now mimic radio behaviour
Fix bug #791

diff -r 1c6d52310678 -r f9845c92c72a chirp/ft817.py
--- a/chirp/ft817.py	Sun Apr 21 09:45:14 2013 +0200
+++ b/chirp/ft817.py	Sun Apr 21 09:45:26 2013 +0200
@@ -556,9 +556,8 @@
         mem.number = number
         if not used:
             mem.empty = True
-        if not valid:
-            mem.empty = True
-            return mem
+            if not valid:
+                return mem
 
         return self._get_memory(mem, _mem)
 



More information about the chirp_devel mailing list