Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit a920bd8

Browse files
committed
Corrected calls to getVal8
1 parent 48105d3 commit a920bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ZED-F9P/Example2_ValConfigurationMethod/Example2_ValConfigurationMethod.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ void setup()
4646
}
4747

4848
byte response;
49-
response = myGPS.getVal(VAL_GROUP_I2C, VAL_ID_I2C_ADDRESS, VAL_GROUP_I2C_SIZE, VAL_LAYER_RAM);
49+
response = myGPS.getVal8(VAL_GROUP_I2C, VAL_ID_I2C_ADDRESS, VAL_GROUP_I2C_SIZE, VAL_LAYER_RAM);
5050
Serial.print(F("I2C Address: 0x"));
5151
Serial.println(response >> 1, HEX); //We have to shift by 1 to get the common '7-bit' I2C address format
5252

53-
response = myGPS.getVal(VAL_GROUP_I2COUTPROT, VAL_ID_I2COUTPROT_NMEA, VAL_GROUP_I2COUTPROT_SIZE, VAL_LAYER_RAM);
53+
response = myGPS.getVal8(VAL_GROUP_I2COUTPROT, VAL_ID_I2COUTPROT_NMEA, VAL_GROUP_I2COUTPROT_SIZE, VAL_LAYER_RAM);
5454
Serial.print(F("Output NMEA over I2C port: 0x"));
5555
Serial.print(response, HEX);
5656
}

0 commit comments

Comments
 (0)