Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpenlin committed Jan 10, 2025
1 parent 65a9736 commit dc01eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/storage/sd_card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ impl<'a> SDCardStorage<'a> {
SDCardState::DriverInstalled { mut driver } => {
let mut drive: u8 = 0;
esp!(unsafe { ff_diskio_get_drive(&mut drive) })?;
// TODO: we assume the card data won't change here. It seems like at this point
// this struct should stay the same without any update? May need to
// read the source code to double check
let card = driver.card().clone();
let fatfs = Fatfs::new_sdcard(drive, driver)?;
SDCardState::Mounted {
Expand Down

0 comments on commit dc01eda

Please sign in to comment.