Added ID check to begin()

This commit is contained in:
Ladyada
2012-09-17 16:40:48 -04:00
parent f9119a841f
commit f4f02f46eb
3 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ Adafruit_BMP085 bmp;
void setup() {
Serial.begin(9600);
bmp.begin();
if (!bmp.begin()) {
Serial.println("Could not find a valid BMP085 sensor, check wiring!");
while (1) {}
}
}
void loop() {