[chirp_devel] [PATCH] [uv5r] Add Busy Channel Lockout (BCL) support to CHIRP
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1360024412 18000 # Node ID 078c045601a75c3e13b0878cc60118cbce8a6275 # Parent 41b8c8a428c3136a49ba9742b79752a6f764602d [uv5r] Add Busy Channel Lockout (BCL) support to CHIRP #501
diff -r 41b8c8a428c3 -r 078c045601a7 chirp/uv5r.py --- a/chirp/uv5r.py Mon Jan 28 20:30:01 2013 -0500 +++ b/chirp/uv5r.py Mon Feb 04 19:33:32 2013 -0500 @@ -35,7 +35,8 @@ lowpower:1; u8 unknown3:1, wide:1, - unknown4:3, + unknown4:2, + bcl:1, scan:1, unknown5:2; } memory[128]; @@ -555,6 +556,12 @@ mem.power = UV5R_POWER_LEVELS[_mem.lowpower] mem.mode = _mem.wide and "FM" or "NFM"
+ mem.extra = RadioSettingGroup("Extra", "extra") + bcl = RadioSetting("bcl", "BCL", + RadioSettingValueBoolean(bool(_mem.bcl))) + bcl.set_doc("Busy Channel Lockout") + mem.extra.append(bcl) + return mem
def set_memory(self, mem): @@ -625,6 +632,9 @@ _mem.wide = mem.mode == "FM" _mem.lowpower = mem.power == UV5R_POWER_LEVELS[1]
+ for setting in mem.extra: + setattr(_mem, setting.get_shortname(), setting.value) + def _is_orig(self): version_tag = _firmware_version_from_image(self) try:
participants (1)
-
Jim Unroe