summaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorKyuchumimo <74131798+Kyuchumimo@users.noreply.github.com>2022-08-09 18:30:21 -0600
committerDamien George <damien@micropython.org>2022-08-11 14:32:22 +1000
commitbfc63a5c844cd9efa25a44b418be201984fa231c (patch)
tree78c14fd249575717d61b93b1dd606cb6b0879f4c /drivers
parent9bcb2c0a209f7970e63757a5f99dd23e010dbc48 (diff)
downloadmicropython-bfc63a5c844cd9efa25a44b418be201984fa231c.tar.gz
micropython-bfc63a5c844cd9efa25a44b418be201984fa231c.zip
drivers/sdcard: Add delay in init_card_v1 to make timeout work.
This now follows how init_card_v2 works.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sdcard/sdcard.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sdcard/sdcard.py b/drivers/sdcard/sdcard.py
index f4520acbb5..df28bd9534 100644
--- a/drivers/sdcard/sdcard.py
+++ b/drivers/sdcard/sdcard.py
@@ -118,6 +118,7 @@ class SDCard:
def init_card_v1(self):
for i in range(_CMD_TIMEOUT):
+ time.sleep_ms(50)
self.cmd(55, 0, 0)
if self.cmd(41, 0, 0) == 0:
# SDSC card, uses byte addressing in read/write/erase commands