Skip to content

Commit 52536d4

Browse files
committed
Fix compilation errors on ESP32
1 parent d1ac395 commit 52536d4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

VanLiveConnect/VanLiveConnect.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ void setup()
332332
#endif
333333

334334
WiFi.mode(WIFI_OFF);
335+
#ifndef ARDUINO_ARCH_ESP32
335336
WiFi.forceSleepBegin();
337+
#endif
336338
delay(1);
337339

338340
md5Checksum = ESP.getSketchMD5();

VanLiveConnect/Wifi.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ const char* SetupWifi()
168168

169169
static const char* wifiSsid = WIFI_SSID;
170170

171+
#ifndef ARDUINO_ARCH_ESP32
171172
WiFi.forceSleepWake();
172173
delay(1);
174+
#endif
173175

174176
// Disable the WiFi persistence. The ESP8266 will not load and save WiFi settings in the flash memory.
175177
WiFi.persistent(false);

0 commit comments

Comments
 (0)