diff --git a/core/src/apps/common/sd_salt.py b/core/src/apps/common/sd_salt.py index 2d78d7a47..4b14ec5ea 100644 --- a/core/src/apps/common/sd_salt.py +++ b/core/src/apps/common/sd_salt.py @@ -62,7 +62,7 @@ async def request_sd_salt( ctx: wire.GenericContext = wire.DUMMY_CONTEXT ) -> Optional[bytearray]: while True: - ensure_sd_card(ctx) + await ensure_sd_card(ctx) try: return storage.sd_salt.load_sd_salt() except storage.sd_salt.WrongSdCard: diff --git a/core/src/apps/management/sd_protect.py b/core/src/apps/management/sd_protect.py index cfb325e46..02cad3ce0 100644 --- a/core/src/apps/management/sd_protect.py +++ b/core/src/apps/management/sd_protect.py @@ -32,7 +32,7 @@ async def _set_salt( ctx: wire.Context, salt: bytes, salt_tag: bytes, stage: bool = False ) -> None: while True: - ensure_sd_card(ctx) + await ensure_sd_card(ctx) try: return storage.sd_salt.set_sd_salt(salt, salt_tag, stage) except OSError: