Fixxed function caller in the API

master
Ebbe Baß 2022-01-04 02:40:03 +01:00
parent 0e058b3b1c
commit ee5d2fd3be
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ app = Flask(__name__)
def index():
command = str(request.args.get('command'))
if command == "switch-ilde-mode":
change_idle_mode()
change_idle_mode
elif command == "switch-toggle-on-off":
power_toggle()
power_toggle
return command