Procházet zdrojové kódy

Fix error on Teensy 2.0 & LC

main
PaulStoffregen před 11 roky
rodič
revize
e643f24cdd
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      utility/Sd2Card.cpp

+ 3
- 1
utility/Sd2Card.cpp Zobrazit soubor

*/ */
uint8_t Sd2Card::readData(uint32_t block, uint8_t Sd2Card::readData(uint32_t block,
uint16_t offset, uint16_t count, uint8_t* dst) { 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 == 0) return true;
if ((count + offset) > 512) { if ((count + offset) > 512) {
goto fail; goto fail;

Načítá se…
Zrušit
Uložit