1
0
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:
Pavol Rusnak 2017-10-29 16:23:25 +01:00
parent b9a599d08d
commit fa802e9353
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -38,9 +38,9 @@ static uint32_t check_sdcard(void)
return 0; 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(); sdcard_power_off();