This commit is contained in:
Markus Schmidl 2017-02-18 21:33:02 +01:00
parent 41cd53cb0f
commit 3fd4dc5b14
1 changed files with 0 additions and 2 deletions

View File

@ -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