diff --git a/platformio.ini b/platformio.ini index 7879566b2..a7c1bed39 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,8 +1,8 @@ ; PlatformIO Project Configuration File for EMS-ESP [platformio] -default_envs = esp8266 -; default_envs = esp32 +; default_envs = esp8266 +default_envs = esp32 # override any settings with your own local ones in pio_local.ini extra_configs = @@ -22,7 +22,6 @@ build_flags = -D FT_PROJECT=1 -D FT_SECURITY=1 -D FT_MQTT=1 - -D FT_NTP=0 ; disable NTP for now -D FT_OTA=1 -D FT_UPLOAD_FIRMWARE=1 -D ONEWIRE_CRC16=0 @@ -77,14 +76,15 @@ board_build.f_cpu = 160000000L ; 160MHz ; eagle.flash.4m1m.ld = 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer ; eagle.flash.4m2m.ld = 1019 KB sketch, 2024 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 1028 KB OTA & buffer ; board_build.ldscript = eagle.flash.4m2m.ld -build_flags = ${common.build_flags} ${common.debug_flags} +build_flags = ${common.build_flags} ${common.debug_flags} -DFT_NTP=0 lib_ignore = AsyncTCP [env:esp32] board = esp32dev build_type = release -platform = espressif32 +; platform = espressif32 +platform = https://github.com/platformio/platform-espressif32.git board_build.partitions = min_spiffs.csv ; https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/ lib_deps = ${common.libs_core} -build_flags = ${common.build_flags} ${common.debug_flags} +build_flags = ${common.build_flags} ${common.debug_flags} -DFT_NTP=1