# HG changeset patch # User Zachary T Welch zach@mandolincreekfarm.com # Fake Node ID 54660081115fa0d765b9edf27c1a1a4e6d2d68fe
Fix style issues in ic2720.py (#2355)
diff --git a/chirp/drivers/ic2720.py b/chirp/drivers/ic2720.py index 462c616..30f4a8e 100644 --- a/chirp/drivers/ic2720.py +++ b/chirp/drivers/ic2720.py @@ -67,12 +67,13 @@ POWER_LEVELS_UHF = [chirp_common.PowerLevel("High", watts=35), chirp_common.PowerLevel("Low", watts=5), chirp_common.PowerLevel("Mid", watts=15)]
+ @directory.register class IC2720Radio(icf.IcomCloneModeRadio): """Icom IC-2720""" VENDOR = "Icom" MODEL = "IC-2720H" - + _model = "\x24\x92\x00\x01" _memsize = 5152 _endframe = "Icom Inc\x2eA0" @@ -161,7 +162,7 @@ class IC2720Radio(icf.IcomCloneModeRadio): _mem = self._memobj.memory[mem.number] _skp = self._memobj.skips[bytepos] _usd = self._memobj.used[bytepos] - + if mem.empty: _usd |= bitpos self._set_bank(mem.number, None) @@ -178,7 +179,7 @@ class IC2720Radio(icf.IcomCloneModeRadio): _mem.tuning_step = STEPS.index(mem.tuning_step) _mem.is_fm = mem.mode == "FM" _mem.duplex = DUPLEX.index(mem.duplex) - + if mem.skip == "S": _skp |= bitpos else: diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist index 6d40bcf..1895c15 100644 --- a/tools/cpep8.blacklist +++ b/tools/cpep8.blacklist @@ -1,7 +1,6 @@ # cpep8.blacklist: The list of files that do not meet PEP8 standards. # DO NOT ADD NEW FILES!! Instead, fix the code to be compliant. # Over time, this list should shrink and (eventually) be eliminated. -./chirp/drivers/ic2720.py ./chirp/drivers/ic2820.py ./chirp/drivers/ic9x.py ./chirp/drivers/ic9x_icf.py