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 5e04a52 + 8c02a8a commit 0b7e25bCopy full SHA for 0b7e25b
src/sensors/MagneticSensorI2C.cpp
@@ -104,7 +104,7 @@ int MagneticSensorI2C::getRawCount() {
104
wire->write(_conf.angle_register);
105
currWireError = wire->endTransmission(false);
106
// read the data msb and lsb
107
- wire->requestFrom(_conf.chip_address, 2);
+ wire->requestFrom(_conf.chip_address, (uint8_t)2);
108
for (byte i=0; i < 2; i++) {
109
readArray[i] = wire->read();
110
}
0 commit comments