File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ impl<'a> SDCardStorage<'a> {
90
90
}
91
91
92
92
pub fn mount ( & mut self , mount_path : & str , max_fds : usize ) -> anyhow:: Result < ( ) > {
93
- match replace ( & mut self . state , SDCardState :: Init ) {
93
+ self . state = match replace ( & mut self . state , SDCardState :: Init ) {
94
94
SDCardState :: Init => {
95
95
bail ! ( "Driver not installed yet" ) ;
96
96
}
@@ -116,7 +116,6 @@ impl<'a> SDCardStorage<'a> {
116
116
SDCardState :: Init => None ,
117
117
SDCardState :: DriverInstalled { driver } => Some ( driver. card ( ) ) ,
118
118
SDCardState :: Mounted { card, .. } => Some ( card) ,
119
- _ => None ,
120
119
}
121
120
}
122
121
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ impl Storage for SDCardStorage<'_> {
32
32
..Default :: default ( )
33
33
} ;
34
34
esp ! ( unsafe { tinyusb_msc_storage_init_sdmmc( & config) } )
35
- . with_context ( || "Failed to initialize spiflash for msc storage" ) ?;
35
+ . with_context ( || "Failed to initialize sd for msc storage" ) ?;
36
36
Ok ( ( ) )
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments