[chirp_devel] [PATCH] [bf888] Fix get_raw_memory() index

Dan Smith
Sun Sep 8 17:17:38 PDT 2013


# HG changeset patch
# User Dan Smith <dsmith at danplanet.com>
# Date 1378662600 25200
# Node ID ea130e31f030c2db47808b6a327900074e27c3f3
# Parent  7cf9697bdc98b0d99f2c097a45c37112b4a107e3
[bf888] Fix get_raw_memory() index

This makes the get_raw_memory() function properly return the n-1'th
memory.

Related to #701

diff -r 7cf9697bdc98 -r ea130e31f030 chirp/h777.py
--- a/chirp/h777.py	Sun Sep 08 10:50:00 2013 -0700
+++ b/chirp/h777.py	Sun Sep 08 10:50:00 2013 -0700
@@ -265,7 +265,7 @@
         do_upload(self)
 
     def get_raw_memory(self, number):
-        return repr(self._memobj.memory[number])
+        return repr(self._memobj.memory[number - 1])
 
     def get_memory(self, number):
         _mem = self._memobj.memory[number - 1]



More information about the chirp_devel mailing list