Skip to content

Commit 7e51885

Browse files
Update LSM6DS3.cpp
I noticed that on modern Arduino Uno Wifi R2 the end() is not defined, and it does not compile. However, with endTransmission() it does.
1 parent 7aa9165 commit 7e51885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LSM6DS3.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void LSM6DS3Class::end()
7979
} else {
8080
writeRegister(LSM6DS3_CTRL2_G, 0x00);
8181
writeRegister(LSM6DS3_CTRL1_XL, 0x00);
82-
_wire->end();
82+
_wire->endTransmission();
8383
}
8484
}
8585

@@ -241,4 +241,4 @@ int LSM6DS3Class::writeRegister(uint8_t address, uint8_t value)
241241
LSM6DS3Class IMU(SPI, SPIIMU_SS, SPIIMU_INT);
242242
#else
243243
LSM6DS3Class IMU_LSM6DS3(Wire, LSM6DS3_ADDRESS);
244-
#endif
244+
#endif

0 commit comments

Comments
 (0)