Fix ESP32

This commit is contained in:
cschwinne 2019-10-25 11:54:47 +02:00
parent d13d60d752
commit 937f404583
2 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#include <Arduino.h>
#ifdef ARDUINO_ARCH_ESP32
#include <WiFi.h>
#include "esp_wifi.h"
#include <ESPmDNS.h>
#include <AsyncTCP.h>
#include "SPIFFS.h"
@ -99,7 +100,7 @@
//version code in format yymmddb (b = daily build)
#define VERSION 1910251
#define VERSION 1910252
char versionString[] = "0.8.6";

View File

@ -205,7 +205,12 @@ void initInterfaces() {
if (alexaEnabled) alexaInit();
#ifndef WLED_DISABLE_OTA
#ifdef ESP8266
if (aOtaEnabled) ArduinoOTA.begin(false);
#else
ArduinoOTA.setMdnsEnabled(false);
if (aOtaEnabled) ArduinoOTA.begin();
#endif
#endif
strip.service();