mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2026-07-28 14:47:16 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user