read LittleFS.totalBytes only once on start

This commit is contained in:
MichaelDvP
2022-09-17 17:10:23 +02:00
parent 872effb297
commit 0d5d353e99
3 changed files with 10 additions and 2 deletions

View File

@@ -220,6 +220,10 @@ class System {
void wifi_reconnect();
void show_users(uuid::console::Shell & shell);
uint32_t FStotal() {
return fstotal_;
}
private:
static uuid::log::Logger logger_;
static bool restart_requested_;
@@ -293,6 +297,9 @@ class System {
int8_t eth_power_;
uint8_t eth_phy_addr_;
uint8_t eth_clock_mode_;
uint32_t fstotal_;
};
} // namespace emsesp