]> granicus.if.org Git - esp-idf/commitdiff
Examples: Remove deprecated system_init() call
authorAngus Gratton <angus@espressif.com>
Mon, 14 Nov 2016 04:54:33 +0000 (15:54 +1100)
committerAngus Gratton <angus@espressif.com>
Mon, 14 Nov 2016 04:54:33 +0000 (15:54 +1100)
examples/01_hello_world/main/hello_world_main.c
examples/02_blink/main/blink.c
examples/03_http_request/main/http_request_main.c
examples/04_https_request/main/https_request_main.c
examples/06_sntp/main/sntp_main.c

index ad2c0acbbd45479599d3a5f1e89cd5fd9e53d440..1ff190acefa528a0cd8e84888d958d51310e3667 100644 (file)
@@ -27,6 +27,5 @@ void hello_task(void *pvParameter)
 void app_main()
 {
     nvs_flash_init();
-    system_init();
     xTaskCreate(&hello_task, "hello_task", 2048, NULL, 5, NULL);
 }
index 6de0e1fa36c692b61efedc50d3d297f90fabe7af..1e49e51b2f86d609cacb3b8c4a42bfa68b231477 100644 (file)
@@ -43,6 +43,5 @@ void blink_task(void *pvParameter)
 void app_main()
 {
     nvs_flash_init();
-    system_init();
     xTaskCreate(&blink_task, "blink_task", 512, NULL, 5, NULL);
 }
index 32f75c0da261ecb93d6f28ca41d4bea461fb29a3..2c203f8394e4c9ffed9e5546102390fb81effda9 100644 (file)
@@ -175,7 +175,6 @@ static void http_get_task(void *pvParameters)
 void app_main()
 {
     nvs_flash_init();
-    system_init();
     initialise_wifi();
     xTaskCreate(&http_get_task, "http_get_task", 2048, NULL, 5, NULL);
 }
index 7f302409d8e7b491fd4ca1387fddb7a3884ed60e..2ad56681d098433c004d47e711cc93eec42392f0 100644 (file)
@@ -369,7 +369,6 @@ static void https_get_task(void *pvParameters)
 void app_main()
 {
     nvs_flash_init();
-    system_init();
     initialise_wifi();
     xTaskCreate(&https_get_task, "https_get_task", 8192, NULL, 5, NULL);
 }
index 7f516625e341d0c3cb57bd389c7eb4b79489ffcf..83f33b965625dcc2df65cc4805345879cdb50af1 100644 (file)
@@ -94,7 +94,6 @@ void app_main()
 static void obtain_time(void)
 {
     nvs_flash_init();
-    system_init();
     initialise_wifi();
     xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
                         false, true, portMAX_DELAY);