diff --git a/platformio.ini b/platformio.ini index 9134007a5..1a48ccd02 100644 --- a/platformio.ini +++ b/platformio.ini @@ -3,8 +3,8 @@ ; [platformio] -;default_envs = release -default_envs = debug +default_envs = release +;default_envs = debug [common] ; custom build options are: @@ -13,11 +13,12 @@ default_envs = debug ; -DCRASH ; -DFORCE_SERIAL ; -DMYESP_DEBUG +;custom_flags = -DFORCE_SERIAL -DMYESP_DEBUG custom_flags = ;general_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH -DVTABLES_IN_FLASH -;general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -O2 -DBEARSSL_SSL_BASIC -general_flags = +general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -O2 -DBEARSSL_SSL_BASIC +;general_flags = [env] framework = arduino @@ -25,12 +26,13 @@ platform = espressif8266 lib_deps = https://github.com/rlogiacco/CircularBuffer https://github.com/PaulStoffregen/OneWire - https://github.com/me-no-dev/ESPAsyncWebServer + ;https://github.com/me-no-dev/ESPAsyncWebServer + https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144 https://github.com/bakercp/CRC32 JustWifi@2.0.2 AsyncMqttClient@0.8.2 EEPROM_Rotate@0.9.2 - ArduinoJson@6.13.0 + ArduinoJson@6.12.0 ESPAsyncUDP ESPAsyncTCP@1.2.2 upload_speed = 921600 @@ -44,9 +46,9 @@ monitor_speed = 115200 upload_protocol = espota upload_port = ems-esp.local +# # These following targets are used by TravisCI to build the firmware versions on Release # Do not modify - [env:travis] board = esp12e build_flags = ${common.general_flags} @@ -72,8 +74,9 @@ board = nodemcu build_flags = ${common.general_flags} extra_scripts = scripts/main_script.py -# These two targets (release and debug) can be modified - +# +# These two targets (release and debug) can be modified below +# [env:debug] board = d1_mini build_type = debug @@ -84,6 +87,7 @@ extra_scripts = [env:release] board = d1_mini +build_type = release build_flags = ${common.general_flags} ${common.custom_flags} extra_scripts = pre:scripts/pre_script.py