Skip to content

Commit 21c1d0b

Browse files
committed
Implicitely disabling WiFi when esp32 core version is bloated
1 parent 210ebc8 commit 21c1d0b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ESP32-BLECollector/Display.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const int AMIGABALL_YPOS = 50;
7272
#undef hasHID
7373
#define hasHID() (bool)false
7474

75-
#elif defined( ARDUINO_ODROID_ESP32 ) // M5Core2
75+
#elif defined( ARDUINO_ODROID_ESP32 ) // Odroid-Go
7676

7777
#undef WITH_WIFI // NTP is useless without a RTC module
7878
#undef TIME_UPDATE_SOURCE // disable time update accordingly
@@ -89,6 +89,13 @@ static const int AMIGABALL_YPOS = 50;
8989
#define BASE_BRIGHTNESS 100
9090

9191
#elif defined ARDUINO_M5STACK_Core2 // M5Core2
92+
93+
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 6)
94+
// espressif bloated the WiFi core since 2.0.7, now throwing
95+
// an "IRAM0 segment data does not fit" linking error when used with NimBLE
96+
#undef WITH_WIFI
97+
#endif
98+
9299
#undef HAS_EXTERNAL_RTC
93100
#define HAS_EXTERNAL_RTC true
94101
#undef RTC_SDA

0 commit comments

Comments
 (0)