1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00

core/sdcard: ensure emulator initializes the SD card when first needed

This commit is contained in:
matejcik 2020-02-17 16:46:53 +01:00
parent 5bd8d9b5bb
commit d0b1b171f1

View File

@ -87,6 +87,7 @@ void sdcard_init(void) {
secbool sdcard_is_present(void) { return sectrue; } secbool sdcard_is_present(void) { return sectrue; }
secbool sdcard_power_on(void) { secbool sdcard_power_on(void) {
sdcard_init();
sdcard_powered = sectrue; sdcard_powered = sectrue;
return sectrue; return sectrue;
} }