Skip to content

Commit 4ef8040

Browse files
committed
esp32: fixes and cleaning
1 parent c2b6adf commit 4ef8040

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/core-net/pollfd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
int
2828
_lws_change_pollfd(struct lws *wsi, int _and, int _or, struct lws_pollargs *pa)
2929
{
30-
#if !defined(LWS_WITH_EVENT_LIBS)
30+
#if !defined(LWS_WITH_EVENT_LIBS) && !defined(LWS_PLAT_FREERTOS) && \
31+
!defined(WIN32) && !defined(_WIN32)
3132
volatile struct lws_context_per_thread *vpt;
3233
#endif
3334
struct lws_context_per_thread *pt;

lib/drivers/netdev/wifi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ lws_netdev_wifi_redo_last(lws_netdev_instance_wifi_t *wnd)
202202
if (lws_settings_plat_get(netdevs->si, setname, buf, &l))
203203
return 1;
204204

205-
lwsl_notice("%s: last successful %s\n", __func__, buf);
205+
lwsl_notice("%s: last successful %.*s\n", __func__, (int)l, buf);
206206

207207
ssid = lws_json_simple_find((const char *)buf, l, "\"ssid\":", &al);
208208
if (!ssid || al > 32)

lib/plat/freertos/freertos-service.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ lws_plat_service(struct lws_context *context, int timeout_ms)
2929
{
3030
int n = _lws_plat_service_tsi(context, timeout_ms, 0);
3131

32-
#if !defined(LWS_AMAZON_RTOS) && defined(LWS_ESP_PLATFORM) && defined(CONFIG_ESP_INT_WDT)
33-
esp_task_wdt_reset();
34-
#endif
35-
3632
return n;
3733
}
3834

0 commit comments

Comments
 (0)