Skip to content

Commit 434aacd

Browse files
committed
skip ALP download on non-neo6 gpses
1 parent 1d09a7f commit 434aacd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/configServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ static void wifiConnectedActions() {
729729
if (WiFiClass::status() == WL_CONNECTED) {
730730
TimeUtils::setClockByNtpAndWait(WiFi.gatewayIP().toString().c_str());
731731
}
732-
if (SD.begin() && WiFiClass::status() == WL_CONNECTED) {
732+
if (SD.begin() && WiFiClass::status() == WL_CONNECTED && gps.is_neo6()) {
733733
AlpData::update(obsDisplay);
734734
}
735735

src/gps.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class Gps {
113113

114114
void coldStartGps();
115115

116+
bool is_neo6() const;
117+
bool is_neo8() const;
118+
bool is_neo10() const;
116119

117120
private:
118121
/* ALP msgs up to 0x16A seen might be more? */
@@ -584,9 +587,7 @@ class Gps {
584587
bool encode(uint8_t data);
585588

586589
bool setBaud();
587-
bool is_neo6() const;
588-
bool is_neo8() const;
589-
bool is_neo10() const;
590+
590591
String hw() const;
591592

592593
bool checkCommunication();

0 commit comments

Comments
 (0)