mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +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);
|
ensure(0 == sdcard_init(), NULL);
|
||||||
|
|
||||||
if (check_sdcard()) {
|
if (check_sdcard()) {
|
||||||
if (!copy_sdcard()) {
|
ensure(true == copy_sdcard(), NULL);
|
||||||
ensure(true == copy_sdcard(), NULL);
|
for (;;);
|
||||||
} else {
|
|
||||||
for (;;);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_and_jump();
|
check_and_jump();
|
||||||
|
Loading…
Reference in New Issue
Block a user