# HG changeset patch # User Zachary T Welch zach@mandolincreekfarm.com # Fake Node ID be4a80848d48e6fa038566f3d93c5da7cd283955
Fix style issues in ic2200.py (#2355)
diff --git a/chirp/drivers/ic2200.py b/chirp/drivers/ic2200.py index e059f59..cb5d66e 100644 --- a/chirp/drivers/ic2200.py +++ b/chirp/drivers/ic2200.py @@ -75,16 +75,17 @@ struct {
TMODES = ["", "Tone", "TSQL", "DTCS"] DUPLEX = ["", "-", "+"] -DTCSP = ["NN", "NR", "RN", "RR"] -STEPS = [5.0, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0, 50.0] +DTCSP = ["NN", "NR", "RN", "RR"] +STEPS = [5.0, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0, 50.0]
POWER_LEVELS = [chirp_common.PowerLevel("High", watts=65), chirp_common.PowerLevel("Mid", watts=25), chirp_common.PowerLevel("MidLow", watts=10), chirp_common.PowerLevel("Low", watts=5)]
+ def _get_special(): - special = { "C" : 206 } + special = {"C": 206} for i in range(0, 3): ida = "%iA" % (i+1) idb = "%iB" % (i+1) @@ -94,9 +95,11 @@ def _get_special():
return special
+ def _wipe_memory(mem, char): mem.set_raw(char * (mem.size() / 8))
+ @directory.register class IC2200Radio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport): """Icom IC-2200""" @@ -128,8 +131,8 @@ class IC2200Radio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport): (0x1AB8, 0x1AC0, 8), ]
- MYCALL_LIMIT = (0, 6) - URCALL_LIMIT = (0, 6) + MYCALL_LIMIT = (0, 6) + URCALL_LIMIT = (0, 6) RPTCALL_LIMIT = (0, 6)
def _get_bank(self, loc): @@ -145,7 +148,7 @@ class IC2200Radio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport): _flag.bank = 0x0A else: _flag.bank = bank - + def get_features(self): rf = chirp_common.RadioFeatures() rf.memory_bounds = (0, 199) @@ -173,7 +176,7 @@ class IC2200Radio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport):
if _mem.mode_dv and not _flag.empty: mem = chirp_common.DVMemory() - mem.dv_urcall = \ + mem.dv_urcall = \ str(self._memobj.urcalls[_mem.urcall].call).rstrip() mem.dv_rpt1call = \ str(self._memobj.rptcalls[_mem.r1call].call).rstrip() diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist index bc24f43..6d40bcf 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/ic2200.py ./chirp/drivers/ic2720.py ./chirp/drivers/ic2820.py ./chirp/drivers/ic9x.py