fixed bug
This commit is contained in:
parent
1962b35c8b
commit
cc932b4d0f
|
@ -86,13 +86,13 @@ def exec_chch_button_cmd(event):
|
|||
sys.stderr.write("No mode with " + str(count) + " short press and a long press\n")
|
||||
else:
|
||||
# '.' room specific function
|
||||
elif count == 1:
|
||||
if count == 1:
|
||||
if event.pin_num == 0:
|
||||
call(["/home/automation/chch-power/light.sh"])
|
||||
else:
|
||||
sys.stderr.write("No room specific function for room " + str(event.pin_num) + "\n")
|
||||
# '. .' toggle current room
|
||||
if count == 2:
|
||||
elif count == 2:
|
||||
event.chip.output_pins[event.pin_num].toggle()
|
||||
else:
|
||||
sys.stderr.write("No mode with " + str(count) + " short press at pin " + str(event.pin_num) + "\n")
|
||||
|
|
Loading…
Reference in New Issue