[chirp_devel] [PATCH 2 of 2] [bf888] Fix loading existing files

Dan Smith
Sat Sep 7 14:59:06 PDT 2013


# HG changeset patch
# User Dan Smith <dsmith at danplanet.com>
# Date 1378591119 25200
# Node ID 6c07be559a1d32deb09f30cb2d25c912b420c16f
# Parent  43ba3ac0bb90717faec6a60ee3bc0c5fdc74b889
[bf888] Fix loading existing files

This adds the process_mmap() function so that the driver will
properly load existing files from disk.

Related to #701

diff -r 43ba3ac0bb90 -r 6c07be559a1d chirp/h777.py
--- a/chirp/h777.py	Sat Sep 07 14:57:27 2013 -0700
+++ b/chirp/h777.py	Sat Sep 07 14:58:39 2013 -0700
@@ -254,9 +254,12 @@
 
         return rf
 
+    def process_mmap(self):
+        self._memobj = bitwise.parse(MEM_FORMAT, self._mmap)
+
     def sync_in(self):
         self._mmap = do_download(self)
-        self._memobj = bitwise.parse(MEM_FORMAT, self._mmap)
+        self.process_mmap()
 
     def sync_out(self):
         do_upload(self)



More information about the chirp_devel mailing list