Skip to content

Commit e8a395e

Browse files
committed
Don't treat GPS communication as failed if we receive a NACK
Even if the message is denied we are actually communicating ;) this caused likely #309
1 parent 8a21056 commit e8a395e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ bool Gps::setBaud() {
313313
/* Send a "ping" message to the gps module and check,
314314
* if we get a response. */
315315
bool Gps::checkCommunication() {
316-
return sendAndWaitForAck(UBX_MSG::CFG_RINV);
316+
return sendAndWaitForAck(UBX_MSG::CFG_RINV) || mAckReceived || mNakReceived;
317317
}
318318

319319
bool Gps::sendAndWaitForAck(UBX_MSG ubxMsgId, const uint8_t *buffer, size_t size) {

0 commit comments

Comments
 (0)