reinitialize the timestamp to ensure enough time to receive response for 0xFF sent.

This commit is contained in:
rhounsell 2019-08-11 17:57:41 -04:00
parent 4e58a112e8
commit 32fa8caab8

View file

@ -321,6 +321,7 @@ bool Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin) {
}
// send 0xFF until 0xFF received to give card some clock cycles
t0 = (uint16_t)_millis();
SERIAL_ECHOLNRPGM(PSTR("Sending 0xFF"));
spiSend(0XFF);
while ((status_ = spiRec()) != 0xFF)