mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 13:41:28 +00:00
Detect UM600 as UC6580 (#4444)
This commit is contained in:
parent
6cd1882aaa
commit
c74bce9360
@ -1220,6 +1220,14 @@ GnssModel_t GPS::probe(int serialSpeed)
|
|||||||
return GNSS_MODEL_UC6580;
|
return GNSS_MODEL_UC6580;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearBuffer();
|
||||||
|
_serial_gps->write("$PDTINFO\r\n");
|
||||||
|
delay(750);
|
||||||
|
if (getACK("UM600", 500) == GNSS_RESPONSE_OK) {
|
||||||
|
LOG_INFO("UM600 detected, using UC6580 Module\n");
|
||||||
|
return GNSS_MODEL_UC6580;
|
||||||
|
}
|
||||||
|
|
||||||
// Get version information for ATGM336H
|
// Get version information for ATGM336H
|
||||||
clearBuffer();
|
clearBuffer();
|
||||||
_serial_gps->write("$PCAS06,1*1A\r\n");
|
_serial_gps->write("$PCAS06,1*1A\r\n");
|
||||||
@ -1822,4 +1830,4 @@ void GPS::toggleGpsMode()
|
|||||||
enable();
|
enable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // Exclude GPS
|
#endif // Exclude GPS
|
Loading…
Reference in New Issue
Block a user