1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-18 10:32:02 +00:00

boardloader: don't call copy_sdcard twice

This commit is contained in:
Pavol Rusnak 2017-10-13 00:28:06 +02:00
parent b60a1ad79f
commit c5dfa37f3e
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -156,12 +156,9 @@ 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);
} else {
for (;;); for (;;);
} }
}
check_and_jump(); check_and_jump();