Skip to content

Commit

Permalink
Merge pull request #30 from nettigo/master
Browse files Browse the repository at this point in the history
Init i2c_dev before use
  • Loading branch information
ladyada authored May 25, 2021
2 parents cd9a26b + 9d02c77 commit 44f57a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adafruit_BMP085.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "Adafruit_BMP085.h"
#include <Adafruit_I2CDevice.h>

Adafruit_BMP085::Adafruit_BMP085() {}
Adafruit_BMP085::Adafruit_BMP085() { i2c_dev = nullptr; }

bool Adafruit_BMP085::begin(uint8_t mode, TwoWire *wire) {
if (mode > BMP085_ULTRAHIGHRES)
Expand Down

0 comments on commit 44f57a2

Please sign in to comment.