[chirp_devel] [PATCH] [BF-888] Fix BCL and Scramble editing
Marco Filippi IZ3GME
Thu Apr 10 09:12:04 PDT 2014
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1397146285 -7200
# gio apr 10 18:11:25 2014 +0200
# Node ID 4cbfbc162073e56aba852c01ffeb7799bf8c8339
# Parent c5cf3c72377a8dc151d06f08a23a22ec800971cf
[BF-888] Fix BCL and Scramble editing
Fix #1549
diff --git a/chirp/h777.py b/chirp/h777.py
--- a/chirp/h777.py
+++ b/chirp/h777.py
@@ -379,7 +379,7 @@
for setting in mem.extra:
# NOTE: Only two settings right now, both are inverted
- setattr(_mem, setting.get_name(), not setting.value)
+ setattr(_mem, setting.get_name(), 0 if setting.value == 1 else 1)
def get_settings(self):
_settings = self._memobj.settings
More information about the chirp_devel
mailing list