mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
boardloader: fix test for existence of bootloader on sd card
This commit is contained in:
parent
b9a599d08d
commit
fa802e9353
@ -38,9 +38,9 @@ static uint32_t check_sdcard(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t buf[SDCARD_BLOCK_SIZE / sizeof(uint32_t)];
|
||||
uint32_t buf[IMAGE_HEADER_SIZE / sizeof(uint32_t)];
|
||||
|
||||
sdcard_read_blocks(buf, 0, 1);
|
||||
sdcard_read_blocks(buf, 0, IMAGE_HEADER_SIZE / SDCARD_BLOCK_SIZE);
|
||||
|
||||
sdcard_power_off();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user