From 492234fbb356a5ca92b3c764e20746c60eec631f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 23 Apr 2016 23:06:17 +0200 Subject: [PATCH] changes.. --- Makefile | 2 +- esp_iot_sdk_v1.5.2/include/user_interface.h | 2 +- libesphttpd/util/cgiwifi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 242fe99..b2fc13b 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ MODULES = user sbmp/library esphttpclient EXTRA_INCDIR = include libesphttpd/include sbmp/library user esphttpclient # libraries used in this project, mainly provided by the SDK -LIBS = c gcc hal phy pp net80211 wpa main lwip crypto +LIBS = c gcc hal phy pp net80211 wpa main lwip crypto #ssl #Add in esphttpd lib diff --git a/esp_iot_sdk_v1.5.2/include/user_interface.h b/esp_iot_sdk_v1.5.2/include/user_interface.h index a4f3425..255dd95 100644 --- a/esp_iot_sdk_v1.5.2/include/user_interface.h +++ b/esp_iot_sdk_v1.5.2/include/user_interface.h @@ -1594,7 +1594,7 @@ bool wifi_set_event_handler_cb(wifi_event_handler_cb_t cb); typedef enum wps_type { WPS_TYPE_DISABLE = 0, - WPS_TYPE_PBC, + WPS_TYPE_PBC, // Only this is supported WPS_TYPE_PIN, WPS_TYPE_DISPLAY, WPS_TYPE_MAX, diff --git a/libesphttpd/util/cgiwifi.c b/libesphttpd/util/cgiwifi.c index d032297..db8cd01 100644 --- a/libesphttpd/util/cgiwifi.c +++ b/libesphttpd/util/cgiwifi.c @@ -215,7 +215,7 @@ static void ICACHE_FLASH_ATTR reassTimerCb(void *arg) { wifi_station_connect(); x=wifi_get_opmode(); connTryStatus=CONNTRY_WORKING; - if (x!=1) { + if (x != STATION_MODE) { //Schedule disconnect/connect os_timer_disarm(&resetTimer); os_timer_setfn(&resetTimer, staResetTimerCb, NULL);