Skip to content

Commit f107635

Browse files
authored
Merge pull request #527 from sparkfun/leeUpdates
Lee updates
2 parents 4b7e558 + a145103 commit f107635

File tree

15 files changed

+1414
-1434
lines changed

15 files changed

+1414
-1434
lines changed

Firmware/RTK_Everywhere/AP-Config/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ function parseIncoming(msg) {
529529
else if (id.includes("antennaHeight_mm")) {
530530
ge("antennaHeight_m").value = val / 1000.0;
531531
}
532-
532+
533533
//Check boxes / radio buttons
534534
else if (val == "true") {
535535
try {
@@ -2700,4 +2700,4 @@ function printableInputType(coordinateInputType) {
27002700
break;
27012701
}
27022702
return ("Unknown");
2703-
}
2703+
}

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ void menuWiFi() {systemPrintln("**WiFi not compiled**");}
202202
bool wifiApIsRunning() {return false;}
203203
bool wifiConnect(bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false;}
204204
uint32_t wifiGetStartTimeout() {return 0;}
205-
bool wifiIsRunning() {return false;}
205+
#define WIFI_IS_RUNNING()
206206
int wifiNetworkCount() {return 0;}
207207
void wifiResetThrottleTimeout() {}
208208
void wifiResetTimeout() {}
209+
#define WIFI_SOFT_AP_RUNNING() {return false;}
209210
bool wifiStart() {return false;}
210211
bool wifiStationIsRunning() {return false;}
211212
#define WIFI_STOP() {}

Firmware/RTK_Everywhere/Display.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
654654

655655
// Count the number of radios in use
656656
uint8_t numberOfRadios = 1; // Bluetooth always indicated. TODO don't count if BT radio type is OFF.
657-
if (wifiIsRunning())
657+
if (WIFI_IS_RUNNING())
658658
numberOfRadios++;
659-
if (espnowState > ESPNOW_OFF)
659+
if (espnowGetState() > ESPNOW_OFF)
660660
numberOfRadios++;
661661

662662
// Bluetooth only
@@ -671,9 +671,9 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
671671
setBluetoothIcon_TwoRadios(iconList);
672672

673673
// Do we have WiFi or ESP
674-
if (wifiIsRunning())
674+
if (WIFI_IS_RUNNING())
675675
setWiFiIcon_TwoRadios(iconList);
676-
else if (espnowState > ESPNOW_OFF)
676+
else if (espnowGetState() > ESPNOW_OFF)
677677
setESPNowIcon_TwoRadios(iconList);
678678

679679
setModeIcon(iconList); // Turn on Rover/Base type icons
@@ -706,7 +706,7 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
706706
iconList->push_back(prop);
707707
}
708708

709-
if (wifiIsRunning()) // WiFi : Columns 34 - 46
709+
if (WIFI_IS_RUNNING()) // WiFi : Columns 34 - 46
710710
{
711711
#ifdef COMPILE_WIFI
712712
int wifiRSSI = WiFi.RSSI();
@@ -753,7 +753,7 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
753753
}
754754
#endif // /COMPILE_CELLULAR
755755

756-
if (espnowState == ESPNOW_PAIRED) // ESPNOW : Columns 64 - 71
756+
if (espnowGetState() == ESPNOW_PAIRED) // ESPNOW : Columns 64 - 71
757757
{
758758
iconPropertyBlinking prop;
759759
prop.duty = 0b11111111;
@@ -792,7 +792,7 @@ void setRadioIcons(std::vector<iconPropertyBlinking> *iconList)
792792
}
793793
}
794794

795-
if (espnowState == ESPNOW_PAIRED)
795+
if (espnowGetState() == ESPNOW_PAIRED)
796796
{
797797
if (espnowIncomingRTCM == true) // Download : Columns 74 - 81
798798
{
@@ -1023,7 +1023,7 @@ void setBluetoothIcon_TwoRadios(std::vector<iconPropertyBlinking> *iconList)
10231023
// This is 64x48-specific
10241024
void setESPNowIcon_TwoRadios(std::vector<iconPropertyBlinking> *iconList)
10251025
{
1026-
if (espnowState == ESPNOW_PAIRED)
1026+
if (espnowGetState() == ESPNOW_PAIRED)
10271027
{
10281028
if (espnowIncomingRTCM == true || espnowOutgoingRTCM == true)
10291029
{

0 commit comments

Comments
 (0)