-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from stakwork/update-deps
Update deps
- Loading branch information
Showing
9 changed files
with
68 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported | ||
|
||
use embedded_svc::storage::StorageBase; | ||
use esp_idf_svc::nvs::*; | ||
use esp_idf_svc::nvs_storage::EspNvsStorage; | ||
use embedded_svc::storage::Storage; | ||
|
||
use std::sync::Arc; | ||
|
||
fn main() -> anyhow::Result<()> { | ||
let default_nvs = Arc::new(EspDefaultNvs::new()?); | ||
let mut store = EspNvsStorage::new_default(default_nvs.clone(), "sphinx", true).expect("no storage"); | ||
let mut store = | ||
EspNvsStorage::new_default(default_nvs.clone(), "sphinx", true).expect("no storage"); | ||
store.remove("config").expect("couldnt remove config 1"); | ||
println!("NVS cleared!"); | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters