From adbec137793e8e7d05b5b4d7873be478d343d2e8 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 2 Oct 2019 16:46:42 +0000 Subject: [PATCH] core/sd_salt: fix bug introduced in ede1a0bae34bb5ee4222678d62d2910790e4554e --- core/src/apps/common/sd_salt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/apps/common/sd_salt.py b/core/src/apps/common/sd_salt.py index 4b3c09d3c0..f9aedba287 100644 --- a/core/src/apps/common/sd_salt.py +++ b/core/src/apps/common/sd_salt.py @@ -120,9 +120,9 @@ async def request_sd_salt( async def set_sd_salt( - ctx: Optional[wire.Context], salt: bytes, salt_tag: bytes, filename: str = "salt" + ctx: Optional[wire.Context], salt: bytes, salt_tag: bytes, new: bool = False ) -> None: - salt_path = _get_salt_path() + salt_path = _get_salt_path(new) sd = io.SDCard() if not sd.power(True): @@ -146,7 +146,7 @@ async def set_sd_salt( async def stage_sd_salt( ctx: Optional[wire.Context], salt: bytes, salt_tag: bytes ) -> None: - await set_sd_salt(ctx, salt, salt_tag, "salt.new") + await set_sd_salt(ctx, salt, salt_tag, True) async def commit_sd_salt(ctx: Optional[wire.Context]) -> None: