# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1334143404 -7200 # Node ID ecaf89696dfda8a52263c13f4e67e848e35843ca # Parent 72aaa91c7f1c6b0cdddfb1423eec4cead3fc211f [RFC] After the fix of the bug we can now use structures of only one element
Both driver has to be changed at once.
#93
diff --git a/chirp/ft817.py b/chirp/ft817.py --- a/chirp/ft817.py +++ b/chirp/ft817.py @@ -148,7 +148,8 @@ struct mem_struct vfoa[15]; struct mem_struct vfob[15]; struct mem_struct home[4]; -struct mem_struct qmb[2]; +struct mem_struct qmb; +struct mem_struct mtqmb; struct mem_struct mtune;
#seekto 0x3FD; @@ -322,7 +323,7 @@ immutable = ["number", "skip", "rtone", "ctone", "extd_number", "dtcs_polarity", "power", "comment"] elif mem.number == -1: - _mem = self._memobj.qmb[0] + _mem = self._memobj.qmb immutable = ["number", "skip", "rtone", "ctone", "extd_number", "name", "dtcs_polarity", "power", "comment"] else: @@ -350,7 +351,7 @@ elif mem.number in range(-2, -6, -1): _mem = self._memobj.home[5 + mem.number] elif mem.number == -1: - _mem = self._memobj.qmb[0] + _mem = self._memobj.qmb else: raise Exception("Sorry, special memory index %i unknown you hit a bug!!" % mem.number)
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -59,7 +59,8 @@ struct mem_struct vfoa[16]; struct mem_struct vfob[16]; struct mem_struct home[4]; -struct mem_struct qmb[2]; +struct mem_struct qmb; +struct mem_struct mtqmb; struct mem_struct mtune;
#seekto 0x4a9;