Skip to content

Commit

Permalink
Short circuit while the probe code does not auto-detect
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Aug 9, 2024
1 parent b498c0b commit 5b45303
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,9 @@ GnssModel_t GPS::probe(int serialSpeed)
_serial_gps->updateBaudRate(serialSpeed);
}
#endif
#ifdef GNSS_AIROHA
return GNSS_MODEL_AG3335;
#endif
#ifdef GPS_DEBUG
for (int i = 0; i < 20; i++) {
getACK("$GP", 200);
Expand Down Expand Up @@ -1241,6 +1244,9 @@ GnssModel_t GPS::probe(int serialSpeed)
LOG_INFO("Aioha AG3335 detected, using AG3335 Module\n");
return GNSS_MODEL_AG3335;
}
// Get version information for Airoha AG3335
clearBuffer();
_serial_gps->write("$PMTK605*31\r\n");

// Get version information
clearBuffer();
Expand Down

0 comments on commit 5b45303

Please sign in to comment.