diff --git a/embed/boardloader/main.c b/embed/boardloader/main.c index 783067490..5edb70779 100644 --- a/embed/boardloader/main.c +++ b/embed/boardloader/main.c @@ -45,12 +45,10 @@ static const uint8_t * const BOARDLOADER_KEYS[] = { static uint32_t check_sdcard(void) { - if (sectrue != sdcard_is_present()) { + if (sectrue != sdcard_power_on()) { return 0; } - ensure(sdcard_power_on(), NULL); - uint64_t cap = sdcard_get_capacity_in_bytes(); if (cap < 1024 * 1024) { sdcard_power_off();