Skip to content

Commit 8c02a8a

Browse files
committed
fix minor magnetic_sensor_i2c warning
1 parent 5e04a52 commit 8c02a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sensors/MagneticSensorI2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int MagneticSensorI2C::getRawCount() {
104104
wire->write(_conf.angle_register);
105105
currWireError = wire->endTransmission(false);
106106
// read the data msb and lsb
107-
wire->requestFrom(_conf.chip_address, 2);
107+
wire->requestFrom(_conf.chip_address, (uint8_t)2);
108108
for (byte i=0; i < 2; i++) {
109109
readArray[i] = wire->read();
110110
}

0 commit comments

Comments
 (0)