mirror of
https://github.com/adafruit/Adafruit-BMP085-Library.git
synced 2026-07-27 20:06:11 +00:00
Added ID check to begin()
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user