mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-22 23:26:45 -08:00
Fix num sats on status bar
This commit is contained in:
@@ -34,10 +34,6 @@ void GpsInterface::begin() {
|
||||
|
||||
delay(3900);
|
||||
|
||||
MicroNMEA::sendSentence(Serial2, "$PSTMFORCESTANDBY,00006");
|
||||
|
||||
delay(100);
|
||||
|
||||
if (Serial2.available()) {
|
||||
Serial.println("GPS Attached Successfully");
|
||||
this->gps_enabled = true;
|
||||
@@ -46,10 +42,8 @@ void GpsInterface::begin() {
|
||||
char c = Serial2.read();
|
||||
//Serial.print(c);
|
||||
//Pass the character to the library
|
||||
Serial.print(c);
|
||||
nmea.process(c);
|
||||
}
|
||||
Serial.println(nmea.getSentence());
|
||||
}
|
||||
else {
|
||||
this->gps_enabled = false;
|
||||
@@ -536,6 +530,10 @@ String GpsInterface::getNumSatsString() {
|
||||
return (String)num_sats;
|
||||
}
|
||||
|
||||
int GpsInterface::getNumSats() {
|
||||
return num_sats;
|
||||
}
|
||||
|
||||
bool GpsInterface::getFixStatus() {
|
||||
return this->good_fix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user