Skip to content

Commit 7f946b6

Browse files
committed
Update u-blox_GNSS.cpp
1 parent 79b9a11 commit 7f946b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/u-blox_GNSS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ uint16_t DevUBLOXGNSS::available()
667667
// Not Applicable for SPI and Serial
668668
bool DevUBLOXGNSS::ping()
669669
{
670-
if (!lock()) return 0;
670+
if (!lock()) return false;
671671
bool ok = _sfeBus->ping();
672672
unlock();
673673
return ok;
@@ -1026,7 +1026,7 @@ bool DevUBLOXGNSS::checkUbloxInternal(ubxPacket *incomingUBX, uint8_t requestedC
10261026
else if (_commType == COMM_TYPE_SPI)
10271027
ok = (checkUbloxSpi(incomingUBX, requestedClass, requestedID));
10281028
unlock();
1029-
return false;
1029+
return ok;
10301030
}
10311031

10321032
// Polls I2C for data, passing any new bytes to process()
@@ -5350,7 +5350,7 @@ bool DevUBLOXGNSS::pushRawData(uint8_t *dataBytes, size_t numDataBytes, bool cal
53505350
if (numDataBytes == 0)
53515351
return false; // Indicate to the user that there was no data to push
53525352

5353-
if (!lock()) return SFE_UBLOX_STATUS_FAIL;
5353+
if (!lock()) return false;
53545354
bool ok = false;
53555355
if (_commType == COMM_TYPE_SERIAL)
53565356
{

0 commit comments

Comments
 (0)