|
|
|
@ -402,10 +402,12 @@ static void test_sd(void) {
|
|
|
|
|
static uint32_t buf1[BLOCK_SIZE / sizeof(uint32_t)];
|
|
|
|
|
static uint32_t buf2[BLOCK_SIZE / sizeof(uint32_t)];
|
|
|
|
|
|
|
|
|
|
#ifndef TREZOR_MODEL_T3T1
|
|
|
|
|
if (sectrue != sdcard_is_present()) {
|
|
|
|
|
vcp_println("ERROR NOCARD");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
ensure(sdcard_power_on(), NULL);
|
|
|
|
|
if (sectrue != sdcard_read_blocks(buf1, 0, BLOCK_SIZE / SDCARD_BLOCK_SIZE)) {
|
|
|
|
|