diff --git a/app/routers/nodes.py b/app/routers/nodes.py index 1eb5aa4..10f0629 100644 --- a/app/routers/nodes.py +++ b/app/routers/nodes.py @@ -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