We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cab245b commit e020577Copy full SHA for e020577
src/storage/spiflash.rs
@@ -53,6 +53,9 @@ impl SPIFlashStorage {
53
// TODO: handle file system not formatted issue.
54
// looks like esp-idf-svc didn't implement error handling at this moment:
55
// https://github.com/esp-rs/esp-idf-svc/blob/6453bedd5967ebc3bcb7d240492a0d5164e818c2/src/io.rs#L130
56
+ // TODO: the f_mount called with async mode, it means the actual mount will only happen in
57
+ // a file operation. Maybe we should leave file sys formatting to the end-user
58
+ // instead? as it's a dangerous operation anyway....
59
self.mounted_fatfs = Some(MountedFatfs::mount(fatfs, mount_path, max_fds)?);
60
Ok(())
61
}
0 commit comments