Skip to content

Commit 8a92c1f

Browse files
committed
Correct ping return type
1 parent 9df5ba2 commit 8a92c1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/u-blox_GNSS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ uint16_t DevUBLOXGNSS::available()
665665
}
666666
// For I2C, ping the _address
667667
// Not Applicable for SPI and Serial
668-
uint16_t DevUBLOXGNSS::ping()
668+
bool DevUBLOXGNSS::ping()
669669
{
670670
return _sfeBus->ping();
671671
}

src/u-blox_GNSS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class DevUBLOXGNSS
108108
void setCommunicationBus(SparkFun_UBLOX_GNSS::GNSSDeviceBus &theBus);
109109
// For I2C, ping the _address
110110
// Not Applicable for SPI and Serial
111-
uint16_t ping();
111+
bool ping();
112112
// For Serial, return Serial.available()
113113
// For I2C, read registers 0xFD and 0xFE. Return bytes available as uint16_t
114114
// Not Applicable for SPI

0 commit comments

Comments
 (0)