Skip to content

Commit 4172c34

Browse files
committed
FIX #34: broken "Upload calibration" option
1 parent 7ce9d7a commit 4172c34

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

uvk5_egzumer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ class UVK5RadioEgzumer(uvk5.UVK5RadioBase):
458458
_steps = [2.5, 5, 6.25, 10, 12.5, 25, 8.33, 0.01, 0.05, 0.1, 0.25, 0.5, 1,
459459
1.25, 9, 15, 20, 30, 50, 100, 125, 200, 250, 500]
460460

461-
upload_calibration = False
462-
463461
@classmethod
464462
def k5_approve_firmware(cls, firmware):
465463
return firmware.startswith('EGZUMER ')
@@ -887,7 +885,10 @@ def set_settings(self, settings):
887885
elif elname == "keyM_longpress_action":
888886
_mem.keyM_longpress_action = \
889887
KEYACTIONS_LIST.index(element.value)
890-
888+
889+
elif elname == "upload_calibration":
890+
self._upload_calibration = bool(element.value)
891+
891892
elif element.changed() and elname.startswith("cal."):
892893
_mem.get_path(elname).set_value(element.value)
893894

0 commit comments

Comments
 (0)