Fix copy mistake
This commit is contained in:
@@ -266,7 +266,7 @@ async def op25_stop(client_id):
|
||||
|
||||
try:
|
||||
# Send the command asynchronously
|
||||
await send_command_to_client(client_id, NodeCommands.OP25_START)
|
||||
await send_command_to_client(client_id, NodeCommands.OP25_STOP)
|
||||
|
||||
return jsonify({"status": "command sent", "client_id": client_id, "command": NodeCommands.OP25_STOP}), 200
|
||||
|
||||
@@ -297,7 +297,7 @@ async def op25_set(client_id):
|
||||
return jsonify({"error": "'args' must be a list"}), 400
|
||||
|
||||
# Send the command asynchronously
|
||||
await send_command_to_client(client_id, NodeCommands.OP25_START, *args)
|
||||
await send_command_to_client(client_id, NodeCommands.OP25_SET, *args)
|
||||
|
||||
return jsonify({"status": "command sent", "client_id": client_id, "command": NodeCommands.OP25_SET}), 200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user