explicit cast eliminates ambiguity
ESP32 wire lib includes requestFrom(int,int,int) and requestFrom(uint16_t,uint8_t,bool) and throws a warning trying to resolve.
This commit is contained in:
parent
50abddc691
commit
07fd81fd91
|
|
@ -385,7 +385,7 @@ char Adafruit_GPS::read(void) {
|
||||||
_buff_idx++;
|
_buff_idx++;
|
||||||
} else {
|
} else {
|
||||||
// refill the buffer!
|
// refill the buffer!
|
||||||
if (gpsI2C->requestFrom(0x10, GPS_MAX_I2C_TRANSFER, true) ==
|
if (gpsI2C->requestFrom((uint16_t)0x10, (uint8_t)GPS_MAX_I2C_TRANSFER, true) ==
|
||||||
GPS_MAX_I2C_TRANSFER) {
|
GPS_MAX_I2C_TRANSFER) {
|
||||||
// got data!
|
// got data!
|
||||||
_buff_max = 0;
|
_buff_max = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue