Update GPS_com.cpp

This commit is contained in:
hdrlux
2023-08-01 19:05:35 +02:00
committed by GitHub
parent 6add396b9f
commit 43a7b6307c

View File

@@ -100,13 +100,11 @@ void GPS_read_seconds() {
} }
} }
void GPS_ON() { void GPS_ON() {
if (!gps_on) { // only if NOT on gps_on = true;
gps_on = true; gps_seconds_t = 0; // make shure GPS serial is alive before setting
gps_seconds_t = 0; // make shure GPS serial is alive before setting pulse_count = 0;
pulse_count = 0; Serial.println("GPS: ON"); // debug
Serial.println("GPS: ON"); // debug
}
} }
void GPS_OFF() { void GPS_OFF() {
@@ -116,4 +114,4 @@ void GPS_OFF() {
} }
} }
//End //End