From 4172c349f2395ee13fd76314027a07a4811d2ac5 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Sat, 17 Feb 2024 00:34:57 +0100 Subject: [PATCH] FIX #34: broken "Upload calibration" option --- uvk5_egzumer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uvk5_egzumer.py b/uvk5_egzumer.py index 296dd6b..42fe673 100644 --- a/uvk5_egzumer.py +++ b/uvk5_egzumer.py @@ -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 ') @@ -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)