bug fix
This commit is contained in:
parent
41cd53cb0f
commit
3fd4dc5b14
|
@ -72,7 +72,6 @@ def switch_unpressed(event):
|
|||
# toggle current room's power with a short and a long press
|
||||
# call a script with two short and a long press
|
||||
def switch_longpressed(event):
|
||||
chch_status_output()
|
||||
shortpress_delay = pin_last_rise_date[event.pin_num] - pin_last_shortpress[event.pin_num]
|
||||
if shortpress_delay > inter_press_max_delay:
|
||||
pin_shortpress_count[event.pin_num] = 0
|
||||
|
@ -86,7 +85,6 @@ def switch_longpressed(event):
|
|||
# switch all power off with a very long press
|
||||
# switch all power on with a short and a very long press
|
||||
def switch_verylongpressed(event):
|
||||
chch_status_output()
|
||||
shortpress_delay = pin_last_rise_date[event.pin_num] - pin_last_shortpress[event.pin_num]
|
||||
if shortpress_delay > inter_press_max_delay:
|
||||
pin_shortpress_count[event.pin_num] = 0
|
||||
|
|
Loading…
Reference in New Issue