diff --git a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp index ad0ae84..1d6e18b 100644 --- a/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp +++ b/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp @@ -843,6 +843,9 @@ boolean SFE_UBLOX_GNSS::checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedC process(spiBuffer[i], incomingUBX, requestedClass, requestedID); } spiBufferIndex = 0; + + //Note to future self: maybe we need the equivalent of "if (millis() - lastCheck >= i2cPollingWait)" here? + //At the moment the code will pound the SPI bus while waiting for data... SPISettings settingsA(_spiSpeed, MSBFIRST, SPI_MODE0); _spiPort->beginTransaction(settingsA);