Merge pull request #1278 from willc0de4food/add-38400-baud-probe

Add 38400 baud probe to GPS auto-detect for Beitian BE-280
This commit is contained in:
Just Call Me Koko
2026-06-16 10:28:55 -04:00
committed by GitHub
+5 -1
View File
@@ -21,7 +21,7 @@ void GpsInterface::begin() {
uint32_t gps_baud = this->initGpsBaudAndForce115200();
if ((gps_baud != 9600) && (gps_baud != 115200))
if ((gps_baud != 9600) && (gps_baud != 38400) && (gps_baud != 115200))
Serial.println(F("Could not detect GPS baudrate"));
delay(1000);
@@ -113,6 +113,10 @@ uint32_t GpsInterface::initGpsBaudAndForce115200() {
return 9600;
}
if (probeBaud(38400)) {
return 38400;
}
probeBaud(9600);
return 0;
}