Skip to content

Commit aa8987e

Browse files
committed
Remove note to future self!
1 parent 79f4412 commit aa8987e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,6 @@ boolean SFE_UBLOX_GNSS::checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedC
861861
}
862862
spiBufferIndex = 0;
863863

864-
//Note to future self: maybe we need the equivalent of "if (millis() - lastCheck >= i2cPollingWait)" here?
865-
//At the moment the code will pound the SPI bus while waiting for data...
866-
867864
_spiPort->beginTransaction(SPISettings(_spiSpeed, MSBFIRST, SPI_MODE0));
868865
digitalWrite(_csPin, LOW);
869866
uint8_t byteReturned = _spiPort->transfer(0xFF);
@@ -881,7 +878,7 @@ boolean SFE_UBLOX_GNSS::checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedC
881878
return (true);
882879
}
883880

884-
while (byteReturned != 0xFF || currentSentence != NONE)
881+
while ((byteReturned != 0xFF) || (currentSentence != NONE))
885882
{
886883
process(byteReturned, incomingUBX, requestedClass, requestedID);
887884
byteReturned = _spiPort->transfer(0xFF);

0 commit comments

Comments
 (0)