Firmware  0.0.0
Loading...
Searching...
No Matches
mem::nvs Namespace Reference

Namespaces

namespace  anonymous_namespace{settings.cpp}
 

Classes

class  Accessories
 Accessories stored in NVS. More...
 
class  Base
 NVS base. More...
 
class  Locos
 Locos stored in NVS. More...
 
class  Settings
 Settings stored in NVS. More...
 

Functions

esp_err_t init ()
 Initialize NVS.
 

Function Documentation

◆ init()

esp_err_t mem::nvs::init ( )

nvs::init() is responsible for initializing the NVS memory during the boot phase. If the NVS partition is truncated for any reason, the entire memory is erased and then reinitialized. The default settings will be restored in this case.

Todo
replace some defaults (e.g. loco flags) with Z21 definitions