Skip to content

Commit a588a3d

Browse files
committed
Switch WiFi off completely
1 parent 416106c commit a588a3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <Arduino.h>
22
#include <WiFi.h>
33

4-
#include <esp_heap_trace.h>
54
#include <esp_heap_task_info.h>
5+
#include <esp_heap_trace.h>
66

77
#define MAX_TASK_NUM 20 // Max number of per tasks info that it can store
88
#define MAX_BLOCK_NUM 20 // Max number of per block info that it can store
@@ -68,6 +68,7 @@ extern "C" void app_main() {
6868
delay(250);
6969
printf(".");
7070
}
71+
WiFi.mode(WIFI_OFF);
7172
printf(" done\n");
7273

7374
ESP_ERROR_CHECK(heap_trace_stop());

0 commit comments

Comments
 (0)