summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-04 10:21:27 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-04 10:21:27 -0600
commit7f56fcdc391d449c749ff794518b7fff328d996a (patch)
tree46827498be411f34c7955c1395888f88e9a9624c /main.cpp
parent41a5c0de1343c4a4163c7096ea33bbfd6c3e84cb (diff)
downloadmtdot-box-evb-factory-firmware-7f56fcdc391d449c749ff794518b7fff328d996a.tar.gz
mtdot-box-evb-factory-firmware-7f56fcdc391d449c749ff794518b7fff328d996a.tar.bz2
mtdot-box-evb-factory-firmware-7f56fcdc391d449c749ff794518b7fff328d996a.zip
display if GPS was detected on startup screen
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 5fbf58d..7b7c7c4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -62,10 +62,6 @@ char* file_name;
// Prototypes
void mainMenu();
-void join();
-void loraDemo();
-void surveySingle();
-void surveySweep();
int main() {
debug.baud(115200);
@@ -93,11 +89,13 @@ int main() {
modeDemo = new ModeDemo(lcd, buttons, dot, lora, gps);
modeConfig = new ModeConfig(lcd, buttons, dot, lora, gps);
- logInfo("GPS %sdetected", gps->gpsDetected() ? "" : "not ");
+ osDelay(1000);
+ logInfo("%sGPS detected", gps->gpsDetected() ? "" : "no ");
// display startup screen for 3 seconds
LayoutStartup ls(lcd, dot);
ls.display();
+ ls.updateGPS(gps->gpsDetected());
osDelay(3000);
logInfo("displaying main menu");