fixed wire read test

pull/156/head
alanbjohnston 4 years ago committed by GitHub
parent 02f5b70f16
commit cc3b76231a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1955,8 +1955,9 @@ Serial1.begin(115200); // Pi UART faster speed
}
Wire.begin();
if (Wire.beginTransmission(0x68) != 0) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
Wire.beginTransmission(0x68);
if (Wire.endTransmission() != 0) {
Serial.println("Could not find a valid MPU6050 sensor, check wiring!");
mpuPresent = 0;
}
else {

Loading…
Cancel
Save

Powered by TurnKey Linux.