diff options
Diffstat (limited to 'fw/fe310/eos/dev/sdcard.c')
-rw-r--r-- | fw/fe310/eos/dev/sdcard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/dev/sdcard.c b/fw/fe310/eos/dev/sdcard.c index fa316c7..656d27a 100644 --- a/fw/fe310/eos/dev/sdcard.c +++ b/fw/fe310/eos/dev/sdcard.c @@ -355,7 +355,9 @@ static int sdc_init(uint32_t timeout) { int eos_sdc_init(uint8_t wakeup_cause) { int rv; - eos_spi_select(EOS_SPI_DEV_SDC); + rv = eos_spi_select(EOS_SPI_DEV_SDC); + if (rv) return rv; + rv = sdc_init(5000); if (rv) { printf("SDC ERROR\n"); |