Skip to content

Commit 81003bf

Browse files
committed
Change COPI data from 0x0A to 0xFF during 'read' transactions
1 parent e4dbf7a commit 81003bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,13 +850,13 @@ boolean SFE_UBLOX_GNSS::checkUbloxSpi(ubxPacket *incomingUBX, uint8_t requestedC
850850
SPISettings settingsA(_spiSpeed, MSBFIRST, SPI_MODE0);
851851
_spiPort->beginTransaction(settingsA);
852852
digitalWrite(_csPin, LOW);
853-
uint8_t byteReturned = _spiPort->transfer(0x0A);
853+
uint8_t byteReturned = _spiPort->transfer(0xFF);
854854
// Note to future self: I think the 0xFF check will cause problems when attempting to process (e.g.) RAWX data
855855
// which could legitimately contain 0xFF within the data stream
856856
while (byteReturned != 0xFF || currentSentence != NONE)
857857
{
858858
process(byteReturned, incomingUBX, requestedClass, requestedID);
859-
byteReturned = _spiPort->transfer(0x0A);
859+
byteReturned = _spiPort->transfer(0xFF);
860860
}
861861
digitalWrite(_csPin, HIGH);
862862
_spiPort->endTransaction();

0 commit comments

Comments
 (0)