File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ signed long MCP9600::getRawADC()
139139 _i2cPort->write (RAW_ADC);
140140 _i2cPort->endTransmission ();
141141
142- if (_i2cPort->requestFrom (_deviceAddress, 3 ) != 0 )
142+ if (_i2cPort->requestFrom (_deviceAddress, ( uint8_t ) 3 ) != 0 )
143143 {
144144 signed long data = _i2cPort->read () << 16 ;
145145 data |= _i2cPort->read () << 8 ;
@@ -585,7 +585,7 @@ uint8_t MCP9600::readSingleRegister(MCP9600_Register reg)
585585 _i2cPort->beginTransmission (_deviceAddress);
586586 _i2cPort->write (reg);
587587 _i2cPort->endTransmission ();
588- if (_i2cPort->requestFrom (_deviceAddress, 1 ) != 0 )
588+ if (_i2cPort->requestFrom (_deviceAddress, ( uint8_t ) 1 ) != 0 )
589589 {
590590 return _i2cPort->read ();
591591 }
@@ -604,7 +604,7 @@ uint16_t MCP9600::readDoubleRegister(MCP9600_Register reg)
604604 _i2cPort->write (reg);
605605 _i2cPort->endTransmission ();
606606
607- if (_i2cPort->requestFrom (_deviceAddress, 2 ) != 0 )
607+ if (_i2cPort->requestFrom (_deviceAddress, ( uint8_t ) 2 ) != 0 )
608608 {
609609 uint16_t data = _i2cPort->read () << 8 ;
610610 data |= _i2cPort->read ();
You can’t perform that action at this time.
0 commit comments