mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-10-26 22:10:17 +00:00
Merge pull request #170 from ladyada-eagleclaw/fix-i2c-read-address
Use the configured I2C address when reading GPS data
This commit is contained in:
1 file changed
+2
-2
@@ -308,8 +308,8 @@ char Adafruit_GPS::read(void) {
|
||||
_buff_idx++;
|
||||
} else {
|
||||
// refill the buffer!
|
||||
if (gpsI2C->requestFrom((uint8_t)0x10, (uint8_t)GPS_MAX_I2C_TRANSFER,
|
||||
(uint8_t) true) == GPS_MAX_I2C_TRANSFER) {
|
||||
if (gpsI2C->requestFrom((uint8_t)_i2caddr, (uint8_t)GPS_MAX_I2C_TRANSFER,
|
||||
true) == GPS_MAX_I2C_TRANSFER) {
|
||||
// got data!
|
||||
_buff_max = 0;
|
||||
char curr_char = 0;
|
||||
|
||||
Reference in new issue
Block a user