From cefd3fc3b068bbe559c8abcc3ee38b2f6a2d33ef Mon Sep 17 00:00:00 2001 From: cziter15 Date: Tue, 25 Jun 2024 06:57:56 +0200 Subject: [PATCH] Small size tweaks --- platformio/libsetup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/libsetup.py b/platformio/libsetup.py index b68c4ca..ca5fa25 100644 --- a/platformio/libsetup.py +++ b/platformio/libsetup.py @@ -17,9 +17,12 @@ environments.append(lb.env) for e in environments: - # remove unused flags + # remove flags e.ProcessUnFlags("-std=gnu++11") e.ProcessUnFlags("-fexceptions") + e.ProcessUnFlags("-DCORE_DEBUG_LEVEL") + e.ProcessUnFlags("-DNO_GLOBAL_ARDUINO_OTA") + e.ProcessUnFlags("-DWEBSOCKETS_SAVE_RAM") # add flags to environment e.ProcessFlags("-std=gnu++2a") e.ProcessFlags("-fno-exceptions")