Git Product home page Git Product logo

Comments (8)

igrr avatar igrr commented on July 2, 2024 2

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.

igrr avatar igrr commented on July 2, 2024

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.

everslick avatar everslick commented on July 2, 2024

Sorry for redirecting you to another repository, again!

hehe, no worries. I appreciate the input!

from esp32-arduino-lib-builder.

everslick avatar everslick commented on July 2, 2024

I think I like this option more than keeping printfs and custom Kconfig options.

me 2. thanks!

from esp32-arduino-lib-builder.

everslick avatar everslick commented on July 2, 2024

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.

BrianPugh avatar BrianPugh commented on July 2, 2024

hey guys, sorry for the slow response; implementing this now.

from esp32-arduino-lib-builder.

BrianPugh avatar BrianPugh commented on July 2, 2024

will be included in esp_littlefs 1.5.4, which should be released later today.

from esp32-arduino-lib-builder.

BrianPugh avatar BrianPugh commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.