Parcourir la source

Allow read of partial requestFrom data

main
PaulStoffregen il y a 9 ans
Parent
révision
db6faf319b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      WireKinetis.cpp

+ 2
- 0
WireKinetis.cpp Voir le fichier

if (millis() - wait_begin > 5) { if (millis() - wait_begin > 5) {
port.C1 = 0; port.C1 = 0;
port.C1 = I2C_C1_IICEN; port.C1 = I2C_C1_IICEN;
rxBufferLength = count;
return count; // clock stretch too long (during data) return count; // clock stretch too long (during data)
} }
} }
if (millis() - wait_begin > 5) { if (millis() - wait_begin > 5) {
port.C1 = 0; port.C1 = 0;
port.C1 = I2C_C1_IICEN; port.C1 = I2C_C1_IICEN;
rxBufferLength = count;
return count; // clock stretch too long (during data) return count; // clock stretch too long (during data)
} }
} }

Chargement…
Annuler
Enregistrer