Disambiguate i2c calls

This commit is contained in:
Scott Lahteine
2020-04-29 03:13:29 -05:00
parent 2fbce22910
commit ef43520d56
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ xyze_uint_t mcp4728_values;
*/
void mcp4728_init() {
Wire.begin();
Wire.requestFrom(I2C_ADDRESS(DAC_DEV_ADDRESS), 24);
Wire.requestFrom(I2C_ADDRESS(DAC_DEV_ADDRESS), uint8_t(24));
while (Wire.available()) {
char deviceID = Wire.read(),
hiByte = Wire.read(),