@ -116,11 +116,12 @@ async def set_sd_salt(
salt_path = "%s/%s" % (device_dir, filename)
sd = io.SDCard()
fs = io.FatFS()
if not sd.power(True):
await insert_card_dialog(ctx)
raise SdProtectCancelled
try:
fs.mount()
fs.mkdir("/trezor", True)
@ -75,8 +75,8 @@ async def lockscreen() -> None:
if utils.EMULATOR:
# Ensure the emulated SD card is FAT32 formatted.
sd.power(True)
except OSError: