mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
drivers/sdcard: Add delay in init_card_v1 to make timeout work.
This now follows how init_card_v2 works.
This commit is contained in:
parent
9bcb2c0a20
commit
bfc63a5c84
@ -118,6 +118,7 @@ class SDCard:
|
|||||||
|
|
||||||
def init_card_v1(self):
|
def init_card_v1(self):
|
||||||
for i in range(_CMD_TIMEOUT):
|
for i in range(_CMD_TIMEOUT):
|
||||||
|
time.sleep_ms(50)
|
||||||
self.cmd(55, 0, 0)
|
self.cmd(55, 0, 0)
|
||||||
if self.cmd(41, 0, 0) == 0:
|
if self.cmd(41, 0, 0) == 0:
|
||||||
# SDSC card, uses byte addressing in read/write/erase commands
|
# SDSC card, uses byte addressing in read/write/erase commands
|
||||||
|
Loading…
Reference in New Issue
Block a user