We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a21056 commit e8a395eCopy full SHA for e8a395e
1 file changed
src/gps.cpp
@@ -313,7 +313,7 @@ bool Gps::setBaud() {
313
/* Send a "ping" message to the gps module and check,
314
* if we get a response. */
315
bool Gps::checkCommunication() {
316
- return sendAndWaitForAck(UBX_MSG::CFG_RINV);
+ return sendAndWaitForAck(UBX_MSG::CFG_RINV) || mAckReceived || mNakReceived;
317
}
318
319
bool Gps::sendAndWaitForAck(UBX_MSG ubxMsgId, const uint8_t *buffer, size_t size) {
0 commit comments