reinitialize the timestamp to ensure enough time to receive response for 0xFF sent.
This commit is contained in:
parent
4e58a112e8
commit
32fa8caab8
1 changed files with 1 additions and 0 deletions
|
@ -321,6 +321,7 @@ bool Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send 0xFF until 0xFF received to give card some clock cycles
|
// send 0xFF until 0xFF received to give card some clock cycles
|
||||||
|
t0 = (uint16_t)_millis();
|
||||||
SERIAL_ECHOLNRPGM(PSTR("Sending 0xFF"));
|
SERIAL_ECHOLNRPGM(PSTR("Sending 0xFF"));
|
||||||
spiSend(0XFF);
|
spiSend(0XFF);
|
||||||
while ((status_ = spiRec()) != 0xFF)
|
while ((status_ = spiRec()) != 0xFF)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue