|
@@ -305,7 +305,7 @@ int32_t I2CPositionEncoder::get_raw_count() {
|
305
|
305
|
|
306
|
306
|
encoderCount.val = 0x00;
|
307
|
307
|
|
308
|
|
- if (Wire.requestFrom(I2C_ADDRESS(i2cAddress), 3) != 3) {
|
|
308
|
+ if (Wire.requestFrom(I2C_ADDRESS(i2cAddress), uint8_t(3)) != 3) {
|
309
|
309
|
//houston, we have a problem...
|
310
|
310
|
H = I2CPE_MAG_SIG_NF;
|
311
|
311
|
return 0;
|
|
@@ -744,7 +744,7 @@ void I2CPositionEncodersMgr::report_module_firmware(const uint8_t address) {
|
744
|
744
|
Wire.endTransmission();
|
745
|
745
|
|
746
|
746
|
// Read value
|
747
|
|
- if (Wire.requestFrom(I2C_ADDRESS(address), 32)) {
|
|
747
|
+ if (Wire.requestFrom(I2C_ADDRESS(address), uint8_t(32))) {
|
748
|
748
|
char c;
|
749
|
749
|
while (Wire.available() > 0 && (c = (char)Wire.read()) > 0)
|
750
|
750
|
SERIAL_ECHO(c);
|