esp-cpp / espp

C++ components for ESP
https://esp-cpp.github.io/espp/
MIT License
30 stars 9 forks source link

feat(file_system): update so that mount point and related const APIs are static #263

Closed finger563 closed 3 months ago

finger563 commented 3 months ago

Description

Move various const APIs in espp::FileSystem to be static instead, so they can be used without initializing the filesystem.

Motivation and Context

There are use cases where you may want to get the mount point or access some of the APIs of the file system which do not require it to have been initialized without initializing the file system. This PR updates some const APIs to be static allowing such use.

How has this been tested?

Building and running the file_system/example on QtPy ESP32s3.

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

Types of changes

Checklist:

Software

github-actions[bot] commented 3 months ago

:white_check_mark:Static analysis result - no issues found! :white_check_mark: