From fe4e38d33087c6f2bb566b7721551b5b38be975d Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 4 Nov 2019 22:59:18 +0100 Subject: [PATCH] added more gcc optimization flags --- platformio.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index 35c255e10..60755ddd7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,9 +11,11 @@ default_envs = debug ; -DTESTS ; -DCRASH ; -DFORCE_SERIAL +; -DMYESP_DEBUG custom_flags = -general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -O2 -DBEARSSL_SSL_BASIC -DVTABLES_IN_FLASH -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH +;general_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH +general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -O2 -DBEARSSL_SSL_BASIC -DVTABLES_IN_FLASH [env] framework = arduino @@ -27,7 +29,6 @@ lib_deps = AsyncMqttClient@0.8.2 EEPROM_Rotate@0.9.2 ArduinoJson@6.12.0 - ;https://github.com/bblanchon/ArduinoJson#v6.13.0 ESPAsyncUDP ESPAsyncTCP@1.2.2 upload_speed = 921600 @@ -37,9 +38,9 @@ monitor_speed = 115200 ;upload_port = /dev/cu.wchusbserial14403 ;upload_port = /dev/cu.usbserial-1440 -; uncomment next 2 lines if using OTA -;upload_protocol = espota -;upload_port = ems-esp.local +; comment out these next 2 lines if using OTA +upload_protocol = espota +upload_port = ems-esp.local [env:travis] board = esp12e