Update GPS_com.cpp
This commit is contained in:
14
GPS_com.cpp
14
GPS_com.cpp
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user