mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
boardloader: don't call copy_sdcard twice
This commit is contained in:
parent
b60a1ad79f
commit
c5dfa37f3e
@ -156,11 +156,8 @@ int main(void)
|
||||
ensure(0 == sdcard_init(), NULL);
|
||||
|
||||
if (check_sdcard()) {
|
||||
if (!copy_sdcard()) {
|
||||
ensure(true == copy_sdcard(), NULL);
|
||||
} else {
|
||||
for (;;);
|
||||
}
|
||||
ensure(true == copy_sdcard(), NULL);
|
||||
for (;;);
|
||||
}
|
||||
|
||||
check_and_jump();
|
||||
|
Loading…
Reference in New Issue
Block a user