Skip to content

Commit

Permalink
feat: read nvs size/offset from partition table
Browse files Browse the repository at this point in the history
  • Loading branch information
filipton committed Jan 12, 2025
1 parent 70864c7 commit 76e7e2f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async fn main(spawner: Spawner) {
}

init_global_logs_store();
let nvs = esp_hal_wifimanager::Nvs::new(0x9000, 0x4000).unwrap();
let nvs = esp_hal_wifimanager::Nvs::new_from_part_table().unwrap();

set_brownout_detection(false);
let rng = esp_hal::rng::Rng::new(peripherals.RNG);
Expand Down

0 comments on commit 76e7e2f

Please sign in to comment.