Skip to content

Commit

Permalink
FIX #34: broken "Upload calibration" option
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Feb 16, 2024
1 parent 7ce9d7a commit 4172c34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions uvk5_egzumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,6 @@ class UVK5RadioEgzumer(uvk5.UVK5RadioBase):
_steps = [2.5, 5, 6.25, 10, 12.5, 25, 8.33, 0.01, 0.05, 0.1, 0.25, 0.5, 1,
1.25, 9, 15, 20, 30, 50, 100, 125, 200, 250, 500]

upload_calibration = False

@classmethod
def k5_approve_firmware(cls, firmware):
return firmware.startswith('EGZUMER ')
Expand Down Expand Up @@ -887,7 +885,10 @@ def set_settings(self, settings):
elif elname == "keyM_longpress_action":
_mem.keyM_longpress_action = \
KEYACTIONS_LIST.index(element.value)


elif elname == "upload_calibration":
self._upload_calibration = bool(element.value)

elif element.changed() and elname.startswith("cal."):
_mem.get_path(elname).set_value(element.value)

Expand Down

0 comments on commit 4172c34

Please sign in to comment.