Comments (8)
As an alternative, https://github.com/joltwallet/esp_littlefs/blob/f2a949fbb303b93a0ae1cd47f078c49de96a59a7/src/lfs_config.h#L44 could be modified to call ESP_LOGV instead of printf, then the log level can be controlled same way as all other IDF logs are.
(similar for other LFS_*
macros: ESP_LOGD, ESP_LOGW, ESP_LOGI)
(I think I like this option more than keeping printfs and custom Kconfig options.)
from esp32-arduino-lib-builder.
I would instead suggest adding Kconfig options for LittleFS debug level in https://github.com/joltwallet/esp_littlefs/blob/master/Kconfig, and applying target_compile_definitions(${COMPONENT_LIB} PRIVATE LFS_NO_DEBUG)
etc. in https://github.com/joltwallet/esp_littlefs/blob/master/CMakeLists.txt.
Adding compiler macros for littlefs internals seems a bit wrong at arduino-lib-builder level. This is something that should be handled by the component itself.
(Sorry for redirecting you to another repository, again!)
from esp32-arduino-lib-builder.
Sorry for redirecting you to another repository, again!
hehe, no worries. I appreciate the input!
from esp32-arduino-lib-builder.
I think I like this option more than keeping printfs and custom Kconfig options.
me 2. thanks!
from esp32-arduino-lib-builder.
so we should simply replace:
#define LFS_DEBUG(...) LFS_DEBUG_(__VA_ARGS__, "")
with:
#define LFS_DEBUG(...) ESP_LOGD("LFS", __VA_ARGS__)
correct?
from esp32-arduino-lib-builder.
hey guys, sorry for the slow response; implementing this now.
from esp32-arduino-lib-builder.
will be included in esp_littlefs 1.5.4, which should be released later today.
from esp32-arduino-lib-builder.
implemented in the newly released esp_littlefs v1.5.4.
If everyone is happy with it, we can then close this issue.
from esp32-arduino-lib-builder.
Related Issues (20)
- Windows build? HOT 4
- Build flags across files HOT 6
- mbedtls_calloc fail HOT 1
- error: implicit declaration of function 'esp_rmaker_cmd_prepare_empty_response' HOT 3
- Linking error "esp_phy/lib/esp32c3/libbtbb.a: file not recognized: file format not recognized" HOT 3
- ./build.sh command ends in ERROR: Can't reliably evaluate relative path without context: ../rmaker_common
- Fails to build on Ubuntu 22 with dependency issue HOT 4
- build lib v4.4 with option idf_libs failed HOT 2
- lib builder v5.1 with option build all running building process indefinitely HOT 3
- "Unknown targets: esp32c6" building against Arduino's idf-release/v5.1 branch HOT 3
- qrcode.h not found HOT 6
- Error at generating PlatformIO manifest HOT 40
- Adding Zigbee lib as a component HOT 4
- Error with copy-to-arduino.sh HOT 2
- Linker error due to zigbee HOT 2
- eth patch files are outdated HOT 1
- Built library is not the same as official one HOT 2
- inconsistent setting for: `CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y` HOT 2
- Question: Using component `esp_tinyusb` HOT 1
- ULP not included for S2 & S3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-arduino-lib-builder.