From 5e3223206524a984172aa2ecc8153cc44eba60bb Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 2 Aug 2019 10:36:06 +0200 Subject: [PATCH] updates to build settings --- CHANGELOG.md | 1 + platformio.ini-example | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6ae9ed36..6597a926b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - SPIFFS event log may wear out ROM ? - Timezone not working 100% +- Building with EEPROM and -DCRASH causes web to fail ## [1.8.1] 2019-07-27 diff --git a/platformio.ini-example b/platformio.ini-example index 6c9c41794..5a0e3b284 100644 --- a/platformio.ini-example +++ b/platformio.ini-example @@ -3,12 +3,12 @@ ; [platformio] -default_envs = release -;default_envs = debug +;default_envs = release +default_envs = debug [common] ; -DMYESP_TIMESTAMP -DTESTS -DCRASH -DFORCE_SERIAL -DNO_GLOBAL_EEPROM -DLOGICANALYZER -general_flags = -DNO_GLOBAL_EEPROM +general_flags = [env] board = d1_mini @@ -40,9 +40,23 @@ upload_port = ems-esp.local [env:buildweb] extra_scripts = pre:scripts/buildweb.py +[env:test] +build_type = debug +build_flags = ${common.general_flags} -DTESTS +extra_scripts = + pre:scripts/rename_fw.py + pre:scripts/buildweb.py + +[env:crash] +build_type = debug +build_flags = ${common.general_flags} -DNO_GLOBAL_EEPROM -DCRASH +extra_scripts = + pre:scripts/rename_fw.py + pre:scripts/buildweb.py + [env:debug] build_type = debug -build_flags = ${common.general_flags} -DCRASH -DTESTS +build_flags = ${common.general_flags} extra_scripts = pre:scripts/rename_fw.py pre:scripts/buildweb.py