Skip to content

Commit

Permalink
tk280: Fix battery save setting
Browse files Browse the repository at this point in the history
This wasn't getting exposed because of the comparison between string
and byte(s) and thus wasn't properly being tested before.
  • Loading branch information
kk7ds committed Jan 15, 2025
1 parent 4d9ba57 commit a033927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chirp/drivers/tk280.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit a033927

Please sign in to comment.