]> granicus.if.org Git - esp-idf/commitdiff
example: fix CI error of ota demo
authorWu Jian Gang <wujiangang@espressif.com>
Fri, 6 Jan 2017 10:52:58 +0000 (18:52 +0800)
committerWu Jian Gang <wujiangang@espressif.com>
Sat, 7 Jan 2017 07:39:22 +0000 (15:39 +0800)
examples/26_ota/main/ota.c

index 8c8caf2d3761a7b4749acfd9af12a6dc8ea44191..4956129e5dc2e59ad4285adf8de94023f2f70893 100644 (file)
@@ -7,6 +7,9 @@
    CONDITIONS OF ANY KIND, either express or implied.
 */
 #include <string.h>
+#include <sys/socket.h>
+#include <netdb.h>
+
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
 #include "freertos/event_groups.h"
 #include "esp_partition.h"
 
 #include "nvs_flash.h"
-#include "lwip/err.h"
-#include "lwip/sockets.h"
-#include "lwip/sys.h"
-#include "lwip/netdb.h"
-#include "lwip/dns.h"
 
 #define EXAMPLE_WIFI_SSID CONFIG_WIFI_SSID
 #define EXAMPLE_WIFI_PASS CONFIG_WIFI_PASSWORD
@@ -226,6 +224,10 @@ void __attribute__((noreturn)) task_fatal_error()
     ESP_LOGE(TAG, "Exiting task due to fatal error...");
     close(socket_id);
     (void)vTaskDelete(NULL);
+
+    while (1) {
+        ;
+    }
 }
 
 void main_task(void *pvParameter)