[chirp_devel] [PATCH] [vx5] bugfix: get_raw_memory() was off by one
Tom Hayward
Tue Mar 13 09:40:38 PDT 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1331656681 21600
# Node ID 8f99d3035d75fdb16ae2316fe051cac98c9f93e3
# Parent ab7e8cdfd61ab1603012ac9e55a405cebf34de08
[vx5] bugfix: get_raw_memory() was off by one
diff -r ab7e8cdfd61a -r 8f99d3035d75 chirp/vx5.py
--- a/chirp/vx5.py Mon Mar 12 18:59:34 2012 -0600
+++ b/chirp/vx5.py Tue Mar 13 10:38:01 2012 -0600
@@ -101,7 +101,7 @@
self._memobj = bitwise.parse(mem_format, self._mmap)
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