We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57854ba + ccc8fb1 commit 4219cedCopy full SHA for 4219ced
Adafruit_LSM303_Accel.cpp
@@ -68,6 +68,8 @@ Adafruit_LSM303_Accel_Unified::Adafruit_LSM303_Accel_Unified(int32_t sensorID) {
68
*/
69
bool Adafruit_LSM303_Accel_Unified::begin(uint8_t i2c_address, TwoWire *wire) {
70
71
+ if (i2c_dev)
72
+ delete i2c_dev;
73
i2c_dev = new Adafruit_I2CDevice(i2c_address, wire);
74
75
if (!i2c_dev->begin()) {
0 commit comments