Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_env.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Nov 6, 2024
1 parent 94a1ecc commit 90cc4d0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bbn_m5atomS3_lite_env/bbn_m5atomS3_lite_env.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ void setup() {
if (!dht.begin(&Wire, DHT12_I2C_ADDR, G2, G1, 100000U)) {
gen_nmea0183_msg("$BBTXT,01,01,01,Sensor not found type=%s", "DHT12");
}

if (!bmp.begin(&Wire, BMP280_I2C_ADDR, G2, G1, 100000U)) {
gen_nmea0183_msg("$BBTXT,01,01,01,Sensor not found type=%s", "BMP280");
}
Expand All @@ -34,7 +33,6 @@ void loop() {
gen_nmea0183_xdr("$BBXDR,H,%.2f,P,HUMI_DHT12", dht.humidity); // %
gen_nmea0183_xdr("$BBXDR,C,%.2f,C,TEMP_DHT12", dht.cTemp); // C
}

if (bmp.update()) {
gen_nmea0183_xdr("$BBXDR,C,%.2f,C,TEMP_BMP280", bmp.cTemp); // C
gen_nmea0183_xdr("$BBXDR,P,%.2f,P,PRES_BMP280", bmp.pressure); // Pa
Expand Down

0 comments on commit 90cc4d0

Please sign in to comment.