mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
core/sdcard: unmount instance when powering off sdcard
This commit is contained in:
parent
c81be584fb
commit
b24411b900
@ -56,6 +56,8 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_trezorio_sdcard_power_on_obj,
|
||||
/// Power off the SD card interface.
|
||||
/// """
|
||||
STATIC mp_obj_t mod_trezorio_sdcard_power_off() {
|
||||
/* XXX should this call happen inside sdcard_power_off()? */
|
||||
_fatfs_unmount_instance();
|
||||
sdcard_power_off();
|
||||
return mp_const_none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user