# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1551545197 28800 # Sat Mar 02 08:46:37 2019 -0800 # Node ID 39f9b924a04a83a66750ebb0b8a5455503b166e7 # Parent ba628d966102a0ee4aab9a1df20cc13bc71bf809 [leixen] Fix valid_tuning_steps list. #6523
diff -r ba628d966102 -r 39f9b924a04a chirp/drivers/leixen.py --- a/chirp/drivers/leixen.py Sat Mar 02 08:04:30 2019 -0800 +++ b/chirp/drivers/leixen.py Sat Mar 02 08:46:37 2019 -0800 @@ -171,7 +171,8 @@ SQL_LIST = ["%s" % x for x in range(0, 10)] SCANM_LIST = ["CO", "TO"] TOT_LIST = ["OFF"] + ["%s seconds" % x for x in range(10, 130, 10)] -STEP_LIST = ["2.5 KHz", "5 KHz", "6.25 KHz", "10 KHz", "12.5 KHz", "25 KHz"] +_STEP_LIST = [2.5, 5., 6.25, 10., 12.5, 25.] +STEP_LIST = ["{} KHz".format(x) for x in _STEP_LIST] MONITOR_LIST = ["CTC/DCS", "DTMF", "CTC/DCS and DTMF", "CTC/DCS or DTMF"] VFOMR_LIST = ["MR", "VFO"] MRCHA_LIST = ["MR CHA", "Freq. MR"] @@ -417,6 +418,7 @@ rf.valid_power_levels = self._power_levels rf.valid_duplexes = ["", "-", "+", "split", "off"] rf.valid_skips = ["", "S"] + rf.valid_tuning_steps = _STEP_LIST rf.valid_bands = [(136000000, 174000000), (400000000, 470000000)] rf.memory_bounds = (1, 199)