You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fl/system/arduino.h is a soft shim (#if FL_HAS_INCLUDE(<Arduino.h>) #include <Arduino.h> + macro cleanup). It never breaks a bare-IDF build, but every include of it pulls the entire Arduino core into the translation unit whenever the core is present — cost in compile time, LDF behavior, and accidental symbol dependence. Several ESP TUs include it although their implementation is already pure IDF:
Separately, src/platforms/esp/32/memory_esp32.hpp forks on #if defined(ARDUINO) at lines 11, 32, 61 around heap queries. heap_caps_* (esp_heap_caps.h) is pure IDF and available identically under Arduino — the fork is unnecessary.
Fix
Delete the fl/system/arduino.h includes from the two pure-IDF TUs; untangle the i2s mock.
Rewrite memory_esp32.hpp to call heap_caps_get_free_size / heap_caps_get_largest_free_block etc. unconditionally; drop all three defined(ARDUINO) guards.
Add a grep-ratchet (lint or CI check) that flags any new fl/system/arduino.h include under src/platforms/esp/** — the ESP tree should reach and stay at zero.
Activity
feat(esp32): remove unused fl/system/arduino.h leaks; unconditional h…