소스 검색

Allow read of partial requestFrom data

main
PaulStoffregen 8 년 전
부모
커밋
db6faf319b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      WireKinetis.cpp

+ 2
- 0
WireKinetis.cpp 파일 보기

@@ -675,6 +675,7 @@ uint8_t TwoWire::requestFrom(uint8_t address, uint8_t length, uint8_t sendStop)
if (millis() - wait_begin > 5) {
port.C1 = 0;
port.C1 = I2C_C1_IICEN;
rxBufferLength = count;
return count; // clock stretch too long (during data)
}
}
@@ -692,6 +693,7 @@ uint8_t TwoWire::requestFrom(uint8_t address, uint8_t length, uint8_t sendStop)
if (millis() - wait_begin > 5) {
port.C1 = 0;
port.C1 = I2C_C1_IICEN;
rxBufferLength = count;
return count; // clock stretch too long (during data)
}
}

Loading…
취소
저장