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:
Rick Sellens 2020-01-31 07:30:30 -05:00
parent 50abddc691
commit 07fd81fd91
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ char Adafruit_GPS::read(void) {
_buff_idx++;
} else {
// 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) {
// got data!
_buff_max = 0;