adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
250 stars 187 forks source link

Update Adafruit_BMP280.h #79

Open Area5111 opened 1 year ago

Area5111 commented 1 year ago

Line 35 + 36 fixed - something was messed up with this 2 lines so the alternative address was not working

caternuson commented 1 year ago

Can you provide a basic sketch that demonstrates this issue.

The clang formatter wants the line to be like it is, which is why the CI is failing: image

caternuson commented 1 year ago

This sketch:

#include <Adafruit_BMP280.h>

void setup() {
  Serial.begin(9600);
  while(!Serial);
  Serial.print("BMP280_ADDRESS_ALT = 0x");
  Serial.println(BMP280_ADDRESS_ALT, 16);
}

void loop() {
}

produces the expected output using a QT Py M0:

BMP280_ADDRESS_ALT = 0x76