Browse Source

Fix error on Teensy 2.0 & LC

main
PaulStoffregen 10 years ago
parent
commit
e643f24cdd
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      utility/Sd2Card.cpp

+ 3
- 1
utility/Sd2Card.cpp View File

*/ */
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;

Loading…
Cancel
Save