Skip to content

Commit

Permalink
Merge pull request #8479 from s-hadinger/prepare_arduino
Browse files Browse the repository at this point in the history
Prepare compile flags for Arduino patches in flight
  • Loading branch information
arendst authored May 18, 2020
2 parents ebbdb28 + 016258e commit d390899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ build_flags = ${esp_defaults.build_flags}
-lstdc++
; 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\]\;\}\)\)
-DPSTR_ALIGN=1
; restrict to minimal mime-types
-DMIMETYPE_MINIMAL

[irremoteesp_full]
build_flags = -DUSE_IR_REMOTE_FULL
Expand Down

0 comments on commit d390899

Please sign in to comment.