Skip to content

Commit

Permalink
calling begin() twice doesnt work otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 23, 2022
1 parent e4608e6 commit 110e489
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Adafruit_MMC56x3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ Adafruit_MMC5603::Adafruit_MMC5603(int32_t sensorID) {
* @return True if initialization was successful, otherwise false.
*/
bool Adafruit_MMC5603::begin(uint8_t i2c_address, TwoWire *wire) {
delete (i2c_dev);
if (!i2c_dev) {
i2c_dev = new Adafruit_I2CDevice(i2c_address, wire);
}
Expand Down

0 comments on commit 110e489

Please sign in to comment.