Skip to content

Commit

Permalink
FIX #32: "Auto reset time" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Feb 15, 2024
1 parent 3c1c0c6 commit 97d4599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvk5_egzumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def set_settings(self, settings):
_mem.dtmf.decode_response = int(element.value)

elif elname == "dtmf_auto_reset_time":
_mem.dtmf.auto_reset_time = int(int(element.value)/10)
_mem.dtmf.auto_reset_time = int(element.value)

elif elname == "dtmf_preload_time":
_mem.dtmf.preload_time = int(int(element.value)/10)
Expand Down Expand Up @@ -1064,7 +1064,7 @@ def get_action(action_num):
dtmf_resp_setting = RadioSetting("dtmf_decode_response",
"Decode Response (D Resp)", val)

tmpval = min_max_def(_mem.dtmf.auto_reset_time, 5, 60, 5)
tmpval = min_max_def(_mem.dtmf.auto_reset_time, 5, 60, 10)
val = RadioSettingValueInteger(5, 60, tmpval)
d_hold_setting = RadioSetting("dtmf_auto_reset_time",
"Auto reset time (s) (D Hold)", val)
Expand Down

0 comments on commit 97d4599

Please sign in to comment.