Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LITTLEFS_MALLOC_STRATEGY_SPIRAM depends. #232

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

rtrbt
Copy link
Contributor

@rtrbt rtrbt commented Mar 3, 2025

ESP32_SPIRAM_SUPPORT has been renamed to SPIRAM since IDF 5.0: espressif/esp-idf@0687daf#diff-23044c90e9c0d809dc2befbe42491cd077bf06445cd24e6acba7784ea5f28b27R20

Also checking for SPIRAM support is not necessary, as SPIRAM_USE_MALLOC already depends on SPIRAM.

Additionally allocating using heap_caps_malloc(..., MALLOC_CAP_SPIRAM) is also possible if SPIRAM_USE_CAPS_ALLOC is set (then SPIRAM is only allocatable with heap_caps_malloc, not with malloc)

ESP32_SPIRAM_SUPPORT has been renamed to SPIRAM since IDF 5.0:
espressif/esp-idf@0687daf#diff-23044c90e9c0d809dc2befbe42491cd077bf06445cd24e6acba7784ea5f28b27R20

Also checking for SPIRAM support is not necessary, as SPIRAM_USE_MALLOC
already depends on SPIRAM.

Additionally allocating using heap_caps_malloc(..., MALLOC_CAP_SPIRAM)
is also possible if SPIRAM_USE_CAPS_ALLOC is set (then SPIRAM is
**only** allocatable with heap_caps_malloc, not with malloc)
@BrianPugh BrianPugh merged commit e8d7881 into joltwallet:master Mar 3, 2025
9 checks passed
@BrianPugh
Copy link
Member

thank you! this is now in v1.18.1

@rtrbt
Copy link
Contributor Author

rtrbt commented Mar 3, 2025

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants