Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 4315c14

Browse files
authored
v1.7.7 to fix compile error
### Releases v1.7.7 1. Fix compile error for ESP32 core v1.0.5-
1 parent 45c2cd6 commit 4315c14

File tree

31 files changed

+195
-151
lines changed

31 files changed

+195
-151
lines changed

README.md

Lines changed: 55 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ It's using a web ConfigPortal, served from the `ESP32 / ESP8266`, and operating
221221
1. [`Arduino IDE 1.8.16+` for Arduino](https://www.arduino.cc/en/Main/Software)
222222
2. [`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
223223
3. [`ESP32 Core 2.0.1+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
224-
4. [`ESP_DoubleResetDetector v1.2.0+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) if using DRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_DoubleResetDetector.svg?)](https://www.ardu-badge.com/ESP_DoubleResetDetector). Use v1.1.0+ if using LittleFS for ESP32.
224+
4. [`ESP_DoubleResetDetector v1.2.1+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) if using DRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_DoubleResetDetector.svg?)](https://www.ardu-badge.com/ESP_DoubleResetDetector). Use v1.1.0+ if using LittleFS for ESP32.
225225
5. [`ESP_MultiResetDetector v1.2.0+`](https://github.com/khoih-prog/ESP_MultiResetDetector) if using MRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_MultiResetDetector.svg?)](https://www.ardu-badge.com/ESP_MultiResetDetector).
226-
6. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core v1.0.4-. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [ESP32 core v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and you don't need to install it if using ESP32 core v1.0.6+
226+
6. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core v1.0.5-. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [ESP32 core v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and you don't need to install it if using ESP32 core v1.0.6+
227227

228228
---
229229

@@ -389,8 +389,9 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
389389
// Use LittleFS
390390
#include "FS.h"
391391

392-
// Check cores/esp32/esp_arduino_version.h
393-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
392+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
393+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
394+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
394395
#warning Using ESP32 Core 1.0.6 or 2.0.0+
395396
// The library has been merged into esp32 core from release 1.0.6
396397
#include <LittleFS.h>
@@ -399,7 +400,7 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
399400
#define FileFS LittleFS
400401
#define FS_Name "LittleFS"
401402
#else
402-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
403+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
403404
// The library has been merged into esp32 core from release 1.0.6
404405
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
405406
@@ -527,13 +528,26 @@ WM_Config WM_config;
527528
// Use LittleFS
528529
#include "FS.h"
529530

530-
// The library will be depreciated after being merged to future major Arduino esp32 core release 2.x
531-
// At that time, just remove this library inclusion
532-
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
531+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
532+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
533+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
534+
#warning Using ESP32 Core 1.0.6 or 2.0.0+
535+
// The library has been merged into esp32 core from release 1.0.6
536+
#include <LittleFS.h>
537+
538+
FS* filesystem = &LittleFS;
539+
#define FileFS LittleFS
540+
#define FS_Name "LittleFS"
541+
#else
542+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
543+
// The library has been merged into esp32 core from release 1.0.6
544+
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
545+
546+
FS* filesystem = &LITTLEFS;
547+
#define FileFS LITTLEFS
548+
#define FS_Name "LittleFS"
549+
#endif
533550

534-
FS* filesystem = &LITTLEFS;
535-
#define FileFS LITTLEFS
536-
#define FS_Name "LittleFS"
537551
#elif USE_SPIFFS
538552
#include <SPIFFS.h>
539553
FS* filesystem = &SPIFFS;
@@ -2110,7 +2124,7 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
21102124
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
21112125
#endif
21122126

2113-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.6"
2127+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.7"
21142128

21152129
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
21162130
#define _WIFIMGR_LOGLEVEL_ 3
@@ -2148,8 +2162,9 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
21482162
// Use LittleFS
21492163
#include "FS.h"
21502164

2151-
// Check cores/esp32/esp_arduino_version.h
2152-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
2165+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
2166+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
2167+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
21532168
#warning Using ESP32 Core 1.0.6 or 2.0.0+
21542169
// The library has been merged into esp32 core from release 1.0.6
21552170
#include <LittleFS.h>
@@ -2158,7 +2173,7 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
21582173
#define FileFS LittleFS
21592174
#define FS_Name "LittleFS"
21602175
#else
2161-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
2176+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
21622177
// The library has been merged into esp32 core from release 1.0.6
21632178
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
21642179
@@ -3468,7 +3483,7 @@ This is terminal debug output when running [ConfigOnSwitchFS_MQTT_Ptr](examples/
34683483
34693484
```
34703485
Starting ConfigOnSwichFS_MQTT_Ptr using LittleFS on ESP8266_NODEMCU_ESP12E
3471-
ESP_WiFiManager v1.7.6
3486+
ESP_WiFiManager v1.7.7
34723487
Configuration file not found
34733488
Failed to read configuration file, using default values
34743489
[WM] RFC925 Hostname = ConfigOnSwichFS-MQTT
@@ -3580,8 +3595,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
35803595
35813596
```cpp
35823597
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32_DEV
3583-
ESP_WiFiManager v1.7.6
3584-
ESP_DoubleResetDetector v1.2.0
3598+
ESP_WiFiManager v1.7.7
3599+
ESP_DoubleResetDetector v1.2.1
35853600
FS File: /ConfigSW.json, size: 150B
35863601
FS File: /CanadaFlag_1.png, size: 40.25KB
35873602
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -3645,8 +3660,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
36453660

36463661
```
36473662
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using LittleFS on ESP32_DEV
3648-
ESP_WiFiManager v1.7.6
3649-
ESP_DoubleResetDetector v1.2.0
3663+
ESP_WiFiManager v1.7.7
3664+
ESP_DoubleResetDetector v1.2.1
36503665
FS File: /CanadaFlag_1.png, size: 40.25KB
36513666
FS File: /CanadaFlag_2.png, size: 8.12KB
36523667
FS File: /CanadaFlag_3.jpg, size: 10.89KB
@@ -3704,8 +3719,8 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
37043719

37053720
```
37063721
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
3707-
ESP_WiFiManager v1.7.6
3708-
ESP_DoubleResetDetector v1.2.0
3722+
ESP_WiFiManager v1.7.7
3723+
ESP_DoubleResetDetector v1.2.1
37093724
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
37103725
Config File successfully parsed
37113726
LittleFS Flag read = 0xd0d04321
@@ -3747,8 +3762,8 @@ WWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
37473762

37483763
```
37493764
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
3750-
ESP_WiFiManager v1.7.6
3751-
ESP_DoubleResetDetector v1.2.0
3765+
ESP_WiFiManager v1.7.7
3766+
ESP_DoubleResetDetector v1.2.1
37523767
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
37533768
Config File successfully parsed
37543769
LittleFS Flag read = 0xd0d01234
@@ -3832,8 +3847,8 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
38323847

38333848
```
38343849
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
3835-
ESP_WiFiManager v1.7.6
3836-
ESP_DoubleResetDetector v1.2.0
3850+
ESP_WiFiManager v1.7.7
3851+
ESP_DoubleResetDetector v1.2.1
38373852
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
38383853
Config File successfully parsed
38393854
LittleFS Flag read = 0xd0d04321
@@ -3872,8 +3887,8 @@ TWWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
38723887

38733888
```
38743889
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
3875-
ESP_WiFiManager v1.7.6
3876-
ESP_DoubleResetDetector v1.2.0
3890+
ESP_WiFiManager v1.7.7
3891+
ESP_DoubleResetDetector v1.2.1
38773892
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
38783893
Config File successfully parsed
38793894
LittleFS Flag read = 0xd0d01234
@@ -3949,8 +3964,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
39493964

39503965
```
39513966
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
3952-
ESP_WiFiManager v1.7.6
3953-
ESP_DoubleResetDetector v1.2.0
3967+
ESP_WiFiManager v1.7.7
3968+
ESP_DoubleResetDetector v1.2.1
39543969
[WM] RFC925 Hostname = ConfigOnDoubleReset
39553970
[WM] setAPStaticIPConfig
39563971
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3999,8 +4014,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
39994014

40004015
```
40014016
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
4002-
ESP_WiFiManager v1.7.6
4003-
ESP_DoubleResetDetector v1.2.0
4017+
ESP_WiFiManager v1.7.7
4018+
ESP_DoubleResetDetector v1.2.1
40044019
[WM] RFC925 Hostname = ConfigOnDoubleReset
40054020
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
40064021
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4109,8 +4124,8 @@ Local Date/Time: Thu May 6 21:29:18 2021
41094124

41104125
```
41114126
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
4112-
ESP_WiFiManager v1.7.6
4113-
ESP_DoubleResetDetector v1.2.0
4127+
ESP_WiFiManager v1.7.7
4128+
ESP_DoubleResetDetector v1.2.1
41144129
[WM] RFC925 Hostname = ConfigOnDoubleReset
41154130
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
41164131
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4160,8 +4175,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
41604175

41614176
```
41624177
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
4163-
ESP_WiFiManager v1.7.6
4164-
ESP_DoubleResetDetector v1.2.0
4178+
ESP_WiFiManager v1.7.7
4179+
ESP_DoubleResetDetector v1.2.1
41654180
[WM] RFC925 Hostname = ConfigOnDoubleReset
41664181
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
41674182
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4306,8 +4321,8 @@ Local Date/Time: Thu May 6 21:29:18 2021
43064321

43074322
```
43084323
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
4309-
ESP_WiFiManager v1.7.6
4310-
ESP_DoubleResetDetector v1.2.0
4324+
ESP_WiFiManager v1.7.7
4325+
ESP_DoubleResetDetector v1.2.1
43114326
[WM] RFC925 Hostname = ConfigOnDoubleReset
43124327
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
43134328
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4359,8 +4374,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
43594374

43604375
```
43614376
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32C3_DEV
4362-
ESP_WiFiManager v1.7.6
4363-
ESP_DoubleResetDetector v1.2.0
4377+
ESP_WiFiManager v1.7.7
4378+
ESP_DoubleResetDetector v1.2.1
43644379
FS File: wm_cp.dat, size: 4B
43654380
FS File: wm_cp.bak, size: 4B
43664381
FS File: wmssl_conf.dat, size: 376B

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
## Table of Contents
1414

1515
* [Changelog](#changelog)
16+
* [Releases v1.7.7](#releases-v177)
1617
* [Releases v1.7.6](#releases-v176)
1718
* [Releases v1.7.5](#releases-v175)
1819
* [Releases v1.7.4](#releases-v174)
@@ -47,6 +48,10 @@
4748

4849
## Changelog
4950

51+
### Releases v1.7.7
52+
53+
1. Fix compile error for ESP32 core v1.0.5-
54+
5055
### Releases v1.7.6
5156

5257
1. Auto detect ESP32 core and use either built-in LittleFS or [LITTLEFS](https://github.com/lorol/LITTLEFS) library

examples/AutoConnect/AutoConnect.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1616
#endif
1717

18-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.6"
18+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.7"
1919

2020
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2121
#define _WIFIMGR_LOGLEVEL_ 3
@@ -44,8 +44,9 @@
4444
// Use LittleFS
4545
#include "FS.h"
4646

47-
// Check cores/esp32/esp_arduino_version.h
48-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
47+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
48+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
49+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
4950
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5051
// The library has been merged into esp32 core from release 1.0.6
5152
#include <LittleFS.h>
@@ -54,7 +55,7 @@
5455
#define FileFS LittleFS
5556
#define FS_Name "LittleFS"
5657
#else
57-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
58+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
5859
// The library has been merged into esp32 core from release 1.0.6
5960
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6061

examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1616
#endif
1717

18-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.6"
18+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.7"
1919

2020
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2121
#define _WIFIMGR_LOGLEVEL_ 3
@@ -46,8 +46,9 @@
4646
// Use LittleFS
4747
#include "FS.h"
4848

49-
// Check cores/esp32/esp_arduino_version.h
50-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
49+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
50+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
51+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5152
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5253
// The library has been merged into esp32 core from release 1.0.6
5354
#include <LittleFS.h>
@@ -56,7 +57,7 @@
5657
#define FileFS LittleFS
5758
#define FS_Name "LittleFS"
5859
#else
59-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
60+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6061
// The library has been merged into esp32 core from release 1.0.6
6162
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6263

examples/AutoConnectWithFeedback/AutoConnectWithFeedback.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1616
#endif
1717

18-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.6"
18+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.7"
1919

2020
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2121
#define _WIFIMGR_LOGLEVEL_ 3
@@ -44,8 +44,9 @@
4444
// Use LittleFS
4545
#include "FS.h"
4646

47-
// Check cores/esp32/esp_arduino_version.h
48-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
47+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
48+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
49+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
4950
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5051
// The library has been merged into esp32 core from release 1.0.6
5152
#include <LittleFS.h>
@@ -54,7 +55,7 @@
5455
#define FileFS LittleFS
5556
#define FS_Name "LittleFS"
5657
#else
57-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
58+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
5859
// The library has been merged into esp32 core from release 1.0.6
5960
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6061

examples/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1616
#endif
1717

18-
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.6"
18+
#define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.7.7"
1919

2020
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2121
#define _WIFIMGR_LOGLEVEL_ 3
@@ -46,8 +46,9 @@
4646
// Use LittleFS
4747
#include "FS.h"
4848

49-
// Check cores/esp32/esp_arduino_version.h
50-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
49+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
50+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
51+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5152
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5253
// The library has been merged into esp32 core from release 1.0.6
5354
#include <LittleFS.h>
@@ -56,7 +57,7 @@
5657
#define FileFS LittleFS
5758
#define FS_Name "LittleFS"
5859
#else
59-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
60+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6061
// The library has been merged into esp32 core from release 1.0.6
6162
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6263

0 commit comments

Comments
 (0)