From 15d3a01e11c9b00dad695369f3c5e9fc3e4c7df9 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Mon, 16 Dec 2024 15:46:43 -0600 Subject: [PATCH 1/2] chore(websocket): remove unused client variable --- components/esp_websocket_client/esp_websocket_client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/esp_websocket_client/esp_websocket_client.c b/components/esp_websocket_client/esp_websocket_client.c index f943a86895..215ed81f39 100644 --- a/components/esp_websocket_client/esp_websocket_client.c +++ b/components/esp_websocket_client/esp_websocket_client.c @@ -122,7 +122,6 @@ struct esp_websocket_client { uint64_t ping_tick_ms; uint64_t pingpong_tick_ms; int wait_timeout_ms; - int auto_reconnect; bool run; bool wait_for_pong_resp; bool selected_for_destroying; From beb6e57e5e2a7c3bb113b702839aa54dd4032046 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Mon, 16 Dec 2024 16:20:21 -0600 Subject: [PATCH 2/2] chore(websocket): align structure members --- components/esp_websocket_client/esp_websocket_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_websocket_client/esp_websocket_client.c b/components/esp_websocket_client/esp_websocket_client.c index 215ed81f39..8f3eb106ed 100644 --- a/components/esp_websocket_client/esp_websocket_client.c +++ b/components/esp_websocket_client/esp_websocket_client.c @@ -126,7 +126,7 @@ struct esp_websocket_client { bool wait_for_pong_resp; bool selected_for_destroying; EventGroupHandle_t status_bits; - SemaphoreHandle_t lock; + SemaphoreHandle_t lock; size_t errormsg_size; char *errormsg_buffer; char *rx_buffer;