Skip to content

Commit

Permalink
PASS1-102_b (#22)
Browse files Browse the repository at this point in the history
* PASS1-102: Fix backwards microSD issue

Found that `ErrorCode` in `SD_HandleTypeDef` was not reset after a failure.
Updated `HAL_SD_Init()` to reset it before attempting initialization.

* Switch back to hard-coded path for now
  • Loading branch information
FoundationKen committed Aug 10, 2021
1 parent 74d9faf commit 9732976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/stm32/boards/Passport/modules/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ async def verify_microsd_backup(*A):

with imported('export') as exp:
fn = await file_picker('Select the backup to verify.',
suffix='.7z', max_size=exp.MAX_BACKUP_FILE_SIZE, folder_path=get_backups_folder_path())
suffix='.7z', max_size=exp.MAX_BACKUP_FILE_SIZE, folder_path='/sd/backups')

if fn:
# do a limited CRC-check over encrypted file
Expand Down Expand Up @@ -972,7 +972,7 @@ async def restore_microsd_backup(*A):

# Choose a backup file -- must be in 7z format
fn = await file_picker('Select the backup to restore and then enter the six-word password.',
suffix='.7z', max_size=10000, folder_path=get_backups_folder_path())
suffix='.7z', max_size=10000, folder_path='/sd/backups')

if fn:
with imported('export') as exp:
Expand Down

0 comments on commit 9732976

Please sign in to comment.