Browse Source

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

rhounsell 4 years ago
parent
commit
32fa8caab8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Firmware/Sd2Card.cpp

+ 1 - 0
Firmware/Sd2Card.cpp

@@ -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)