From a43485bf62039e6f52ee8211d7ecb647bcd35072 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 5 May 2020 21:00:50 +0200 Subject: [PATCH] Don't align PSTR on 4 bytes boundaries --- platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index b63a1e41d..7688d3974 100755 --- a/platformio.ini +++ b/platformio.ini @@ -99,7 +99,8 @@ build_flags = ${esp_defaults.build_flags} -D NDEBUG -mtarget-align -DFP_IN_IROM - + ; the following removes the 4-bytes alignment for PSTR(), waiting for a cleaner flag from Arduino Core + -DPSTR\(s\)=\(__extension__\(\{static\ const\ char\ __c\[\]\ __attribute__\(\(__aligned__\(1\)\)\)\ __attribute__\(\(section\(\ \"\\\\\".irom0.pstr.\"\ __FILE__\ \".\"\ __STRINGIZE\(__LINE__\)\ \".\"\ \ __STRINGIZE\(__COUNTER__\)\ \"\\\\\"\,\ \\\\\"aSM\\\\\"\,\ \@progbits\,\ 1\ \#\"\)\)\)\ =\ \(s\)\;\ \&__c\[0\]\;\}\)\) [irremoteesp_full] build_flags = -DUSE_IR_REMOTE_FULL