Skip to content

Commit c9b7d86

Browse files
author
Marius
committed
Removed ambiguity of requestFrom call
1 parent fa51b6f commit c9b7d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_PWMServoDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Adafruit_PWMServoDriver::Adafruit_PWMServoDriver(TwoWire *i2c, uint8_t addr) {
4646
* @brief Setups the I2C interface and hardware
4747
* @param prescale
4848
* Sets External Clock (Optional)
49-
*
49+
*
5050
*/
5151
void Adafruit_PWMServoDriver::begin(uint8_t prescale) {
5252
_i2c->begin();
@@ -164,7 +164,7 @@ void Adafruit_PWMServoDriver::setPWMFreq(float freq) {
164164
* @return requested PWM output value
165165
*/
166166
uint8_t Adafruit_PWMServoDriver::getPWM(uint8_t num) {
167-
_i2c->requestFrom((uint8_t)_i2caddr, LED0_ON_L + 4 * num, (uint8_t)4);
167+
_i2c->requestFrom((int)_i2caddr, LED0_ON_L + 4 * num, (int)4);
168168
return _i2c->read();
169169
}
170170

0 commit comments

Comments
 (0)