Add note to future self

This commit is contained in:
PaulZC
2021-06-28 12:04:05 +01:00
parent faaf6d002e
commit e280f22005
@@ -844,6 +844,9 @@ boolean SFE_UBLOX_GNSS::checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedC
}
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);
digitalWrite(_csPin, LOW);