Skip to content

Commit

Permalink
Enable NON32XFER_HANDLER on ESP8266
Browse files Browse the repository at this point in the history
This is a platform feature that asks forgiveness for PROGMEM misuse:
it adds a handler such that incorrectly used PROGMEM will work without
crashing, just really, *really* inefficiently.

Given that most of our real-world use cases for PROGMEM strings are
relatively infrequent text calls, we can err on the side of developer
convenience and address performance problems if and when they arise.
  • Loading branch information
willmmiles authored and softhack007 committed Nov 26, 2024
1 parent 7d10bd0 commit 12ef7cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ build_flags =
; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 ;; in case of linker errors like "section `.text1' will not fit in region `iram1_0_seg'"
; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED ;; (experimental) adds some extra heap, but may cause slowdown
-D USERMOD_AUDIOREACTIVE
-D NON32XFER_HANDLER ;; ask forgiveness for PROGMEM misuse

lib_deps =
#https://github.com/lorol/LITTLEFS.git
Expand Down

0 comments on commit 12ef7cb

Please sign in to comment.