1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 13:21:03 +00:00

core/boot: don't call mkfs in emulator

This commit is contained in:
Pavol Rusnak 2020-02-07 16:12:06 +01:00
parent fdfa64ac2a
commit e58225fe02
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,7 +1,7 @@
import storage
import storage.device
import storage.sd_salt
from trezor import config, io, log, loop, res, ui, utils
from trezor import config, log, loop, res, ui, utils
from trezor.pin import pin_to_int, show_pin_timeout
from apps.common.request_pin import PinCancelled, request_pin
@ -68,19 +68,6 @@ async def lockscreen() -> None:
await ui.click()
if utils.EMULATOR:
# Ensure the emulated SD card is FAT32 formatted.
sd = io.SDCard()
sd.power(True)
fs = io.FatFS()
try:
fs.mount()
except OSError:
fs.mkfs()
else:
fs.unmount()
sd.power(False)
ui.display.backlight(ui.BACKLIGHT_NONE)
ui.backlight_fade(ui.BACKLIGHT_NORMAL)
config.init(show_pin_timeout)