瀏覽代碼

Fix error on Teensy 2.0 & LC

main
PaulStoffregen 9 年之前
父節點
當前提交
e643f24cdd
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      utility/Sd2Card.cpp

+ 3
- 1
utility/Sd2Card.cpp 查看文件

@@ -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…
取消
儲存