Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdcard: solve backup bug when sd is re-inserted #1319

Merged
merged 1 commit into from
Oct 30, 2024

Commits on Oct 30, 2024

  1. sdcard: solve backup bug when sd is re-inserted

    This issue was existent for a long time. While using the BitBox02,
    when the sdcard is plugged into the device and the user unplugs
    and replugs it, backup operations (e.g., list backups, restore
    from backup) failed and throwed error from the firmware side.
    
    Sdcard backup operations first check if the sdcard is inserted
    before calling sdcard interface funtions. This commit fixes
    the re-insertion problem by reinitializing the sdcard whenever
    it is checked if it is inserted.
    
    The problem earlier most probably stems from sdcard being in an
    unexpected state when it is re-inserted. The forced initialization
    step fixes the broken states.
    
    Signed-off-by: asi345 <[email protected]>
    asi345 committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    f4c67e8 View commit details
    Browse the repository at this point in the history