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 f39c48a + 6add627 commit 29c03e3Copy full SHA for 29c03e3
src/SparkFun_I2C_Mux_Arduino_Library.cpp
@@ -74,7 +74,7 @@ uint8_t QWIICMUX::getPort()
74
{
75
//Read the current mux settings
76
//_i2cPort->beginTransmission(_deviceAddress); <- Don't do this!
77
- _i2cPort->requestFrom(_deviceAddress, 1);
+ _i2cPort->requestFrom(_deviceAddress, uint8_t(1));
78
if (!_i2cPort->available())
79
return (255); //Error
80
uint8_t portBits = _i2cPort->read();
@@ -106,7 +106,7 @@ uint8_t QWIICMUX::getPortState()
106
107
108
109
110
return (_i2cPort->read());
111
}
112
0 commit comments