# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1366530314 -7200 # Node ID 1c6d5231067832e0624eb5306af5e4c622130f86 # Parent 35bd3e0c31b761d54c438234a0fe53e2a5b84f2e [ft857] Fix color set in for DISP COLOR FIX setting introduced with #569
diff -r 35bd3e0c31b7 -r 1c6d52310678 chirp/ft857.py --- a/chirp/ft857.py Wed Apr 10 19:17:38 2013 -0700 +++ b/chirp/ft857.py Sun Apr 21 09:45:14 2013 +0200 @@ -672,7 +672,7 @@ RadioSettingValueInteger(0, 1,_settings.disp_color_vfo)) panel.append(rs) rs = RadioSetting("disp_color_fix", "Display color fix set", - RadioSettingValueInteger(1, 32,_settings.disp_color_fix-1)) + RadioSettingValueInteger(1, 32,_settings.disp_color_fix+1)) panel.append(rs) rs = RadioSetting("disp_contrast", "Contrast", RadioSettingValueInteger(3, 15,_settings.disp_contrast+2)) @@ -893,12 +893,10 @@ val = int(element.value) setattr(obj, "dig_vox_enable", int(val>0)) setattr(obj, setting, val) - elif setting == "disp_color_fix": - setattr(obj, setting, int(element.value)+1) + elif setting in ["disp_color_fix", "dsp_nr"]: + setattr(obj, setting, int(element.value)-1) elif setting == "disp_contrast": setattr(obj, setting, int(element.value)-2) - elif setting == "dsp_nr" : - setattr(obj, setting, int(element.value)-1) else: setattr(obj, setting, element.value) except Exception, e: