mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
Pickier parsing of NMEA to detect an L76K chip (#2699)
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
parent
2074c76780
commit
9470d4694b
@ -884,7 +884,7 @@ GnssModel_t GPS::probe()
|
|||||||
int index = ver.indexOf("$");
|
int index = ver.indexOf("$");
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
ver = ver.substring(index);
|
ver = ver.substring(index);
|
||||||
if (ver.startsWith("$GPTXT,01,01,02")) {
|
if (ver.startsWith("$GPTXT,01,01,02,SW=")) {
|
||||||
LOG_INFO("L76K GNSS init succeeded, using L76K GNSS Module\n");
|
LOG_INFO("L76K GNSS init succeeded, using L76K GNSS Module\n");
|
||||||
return GNSS_MODEL_MTK;
|
return GNSS_MODEL_MTK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user