jgauchia / IceNav-v3

ESP32 Based GPS Navigator with OSM offline maps. (Under development)
GNU General Public License v3.0
49 stars 11 forks source link

notifyBar error: 'WiFi' was not declared #149

Closed hpsaturn closed 2 weeks ago

hpsaturn commented 2 weeks ago

Overview

When we disabling the CLI with build flags we have this issue

Details

Comment the build flags of CLI to replicate this build issue.

Log output

Compiling .pio/build/MAKERF_ESP32S3/FrameworkArduino/FirmwareMSC.cpp.o
lib/gui/src/notifyBar.cpp: In function 'void updateNotifyBar(lv_event_t*)':
lib/gui/src/notifyBar.cpp:78:9: error: 'WiFi' was not declared in this scope
     if (WiFi.status() == WL_CONNECTED)
         ^~~~
lib/gui/src/notifyBar.cpp:78:9: note: suggested alternative: 'wifi'
     if (WiFi.status() == WL_CONNECTED)
         ^~~~
         wifi
lib/gui/src/notifyBar.cpp:78:26: error: 'WL_CONNECTED' was not declared in this scope
     if (WiFi.status() == WL_CONNECTED)
                          ^~~~~~~~~~~~
*** [.pio/build/MAKERF_ESP32S3/libe13/gui/notifyBar.cpp.o] Error 1