Skip to content

Commit

Permalink
example: fix CI error of ota demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wujiangang committed Jan 7, 2017
1 parent 4491dd0 commit ed01eb2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/26_ota/main/ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -19,11 +22,6 @@
#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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ed01eb2

Please sign in to comment.