Skip to content

Commit

Permalink
fix: cast i2c address to 8bit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Sep 19, 2023
1 parent 9d60392 commit 75eb865
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class WipperSnapper_I2C_Driver_ENS160 : public WipperSnapper_I2C_Driver {
*/
/*******************************************************************************/
bool begin() {
_ens160 = new ScioSense_ENS160(_i2c, _sensorAddress);
_ens160 = new ScioSense_ENS160(_i2c, (uint8_t)_sensorAddress);

// attempt to initialize ENS160
if (!_ens160->begin())
Expand Down

0 comments on commit 75eb865

Please sign in to comment.