Skip to content

Commit 12ef7cb

Browse files
willmmilessofthack007
authored andcommitted
Enable NON32XFER_HANDLER on ESP8266
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.
1 parent 7d10bd0 commit 12ef7cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ build_flags =
291291
; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48 ;; in case of linker errors like "section `.text1' will not fit in region `iram1_0_seg'"
292292
; -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED ;; (experimental) adds some extra heap, but may cause slowdown
293293
-D USERMOD_AUDIOREACTIVE
294+
-D NON32XFER_HANDLER ;; ask forgiveness for PROGMEM misuse
294295

295296
lib_deps =
296297
#https://github.com/lorol/LITTLEFS.git

0 commit comments

Comments
 (0)