File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -358,11 +358,16 @@ bool GPSHardware::DetectMtkUart() {
358358 // Attempt to use Adafruit_GPS
359359 _ada_gps = new Adafruit_GPS (_hw_serial);
360360 int baud_rate;
361- #if defined(ARDUINO_RASPBERRY_PI_PICO_W) || defined(ARDUINO_RASPBERRY_PI_PICO_2W)
362- baud_rate = 9600 ; // Pico SDK does not support getting baud rate from serial, default to 9600
363- #else
361+ #if defined(ARDUINO_RASPBERRY_PI_PICO_W) || \
362+ defined (ARDUINO_RASPBERRY_PI_PICO_2W) || \
363+ defined (ADAFRUIT_METRO_M4_EXPRESS) || \
364+ defined (ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined (ADAFRUIT_PYPORTAL) || \
365+ defined (ADAFRUIT_PYPORTAL_M4_TITANO)
366+ baud_rate = 9600 ; // Pico SDK does not support getting baud rate from serial,
367+ // default to 9600
368+ #else
364369 baud_rate = _hw_serial->baudRate ();
365- #endif
370+ #endif
366371 if (!_ada_gps->begin (baud_rate)) {
367372 WS_DEBUG_PRINTLN (" [gps] ERROR: Failed to initialize Mediatek!" );
368373 return false ;
You can’t perform that action at this time.
0 commit comments