From 74b6fc2db2699088606d052a2f0bd99c38a57650 Mon Sep 17 00:00:00 2001 From: turret Date: Thu, 18 Jan 2024 09:24:01 -0600 Subject: ws: fix typo --- net/ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/ws.c') diff --git a/net/ws.c b/net/ws.c index 8f3a588..3a8d512 100644 --- a/net/ws.c +++ b/net/ws.c @@ -36,7 +36,7 @@ void ws_send_heartbeat() void ws_handle_event(cJSON *event) { int op = cJSON_GetObjectItem(event, "op")->valueint; - cJSON *data = cJSON_GetObjectItem(event, "d") + cJSON *data = cJSON_GetObjectItem(event, "d"); switch(op) { case 1: /* Heartbeat request */ ws_send_heartbeat(); -- cgit v1.2.3