Sfoglia il codice sorgente

Fix error on Teensy 2.0 & LC

main
PaulStoffregen 9 anni fa
parent
commit
e643f24cdd
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      utility/Sd2Card.cpp

+ 3
- 1
utility/Sd2Card.cpp Vedi File

@@ -476,7 +476,9 @@ uint8_t Sd2Card::readBlock(uint32_t block, uint8_t* dst) {
*/
uint8_t Sd2Card::readData(uint32_t block,
uint16_t offset, uint16_t count, uint8_t* dst) {
//uint16_t n;
#if !defined(USE_TEENSY3_SPI) && defined(OPTIMIZE_HARDWARE_SPI)
uint16_t n;
#endif
if (count == 0) return true;
if ((count + offset) > 512) {
goto fail;

Loading…
Annulla
Salva