Skip to content

Commit 8704dd7

Browse files
committed
Increase timeout to wait for ACK/NAK from GPS.
1 parent 28bd976 commit 8704dd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/gps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ bool Gps::checkCommunication() {
321321

322322
bool Gps::sendAndWaitForAck(UBX_MSG ubxMsgId, const uint8_t *buffer, size_t size) {
323323
const int tries = 3;
324-
const int timeoutMs = 1000;
324+
// we had the case see https://github.com/openbikesensor/OpenBikeSensorFirmware/issues/309
325+
const int timeoutMs = 3000;
325326

326327
bool result = false;
327328
for (int i = 0; i < tries; i++) {

0 commit comments

Comments
 (0)