From a03392785c814da80337c693134f68517f63671f Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 14 Jan 2025 20:17:55 -0800 Subject: [PATCH] tk280: Fix battery save setting This wasn't getting exposed because of the comparison between string and byte(s) and thus wasn't properly being tested before. --- chirp/drivers/tk280.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chirp/drivers/tk280.py b/chirp/drivers/tk280.py index e089affd..0e457e2e 100644 --- a/chirp/drivers/tk280.py +++ b/chirp/drivers/tk280.py @@ -1200,11 +1200,11 @@ def get_settings(self): current_index=int(sett.signalling_type))) optfeat1.append(sigtyp) - if self.TYPE[0] == "P": + if self.TYPE[0:1] == b"P": bsav = MemSetting( "settings.battery_save", "Battery Save", - RadioSettingValueList(BSAVE.values(), - current_index=sett.battery_save)) + RadioSettingValueMap([(v, k) for k, v in BSAVE.items()], + sett.battery_save)) optfeat1.append(bsav) tot = MemSetting("settings.tot", "Time Out Timer (TOT)",