Skip to main content

init

Function init 

Source
pub fn init(flash: FLASH<'static>)
Expand description

Initialize the global NVS handle. Takes ownership of the FLASH peripheral.

Must be called once at startup (after heap init) before any load/save operation. A failed init leaves storage disabled; operations then fall back to defaults instead of panicking.