diff --git a/src/main.cpp b/src/main.cpp index 95cfcae..8442d58 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -567,6 +567,11 @@ void readNmeaRmc() { // L80-R: Send GPS module into standby mode Serial.println("$PMTK161,0*28"); Serial.flush(); +#endif +#if defined(GPSM_AIR530) + // AIR530: Send GPS module into low-power mode + Serial.println("$PGKC051,1*36"); + Serial.flush(); #endif char buf[16]; char *bptr = buf; @@ -719,6 +724,11 @@ void setup() { // L80-R: Disable all NMEA sentences except for GPRMC Serial.println("$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"); Serial.flush(); +#elif defined(GPSM_AIR530) + Serial.begin(9600); + // AIR530: Disable all NMEA sentences except for GPRMC + Serial.println("$PGKC242,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*36"); + Serial.flush(); #else // Assume NMEA-0183 default baud rate of 4800 Serial.begin(4800); @@ -804,4 +814,9 @@ void loop() { lcd.backlight(); lcd.display(); } +#if defined(GPSM_AIR530) + // Wake AIR530 + Serial.println(); + Serial.flush(); +#endif }