• Hey - success ! I was wrong about the GPS settings not sticking across a Power Off /On.

    I had not used my GPS for a while so got fooled by the extra time it takes when it has completely lost track of satellites. So I think I have a working gpssetup App !

    At the moment I have an ON/OFF - just because I need a way of turning the GPS Power off BUT I can easily do that through any App. Shall I take the ON/OFF option out to do a pull request ?

    One question I have is that I want to display a message while the GPS is powered on , setup and then powered off. At the moment I just get a blank screen. Here is the code snippet.

        '< Back': ()=>{ exitSetup(); }
      };
    
      return E.showMenu(mainmenu);
    }
    
    function exitSetup() {
      log_debug("exitSetup()");
      if (settings_changed) {
        log_debug(settings);
        g.clear();
        g.setFontAlign(0,0);
        g.setColor(3);  
        g.setFontVector(25);
        g.drawString("Configuring GPS",120,120);
        wait(500);
        setupGPS();
        wait(500);
      }
      load();
    }
    
    loadSettings();
    showMainMenu();
    

    I am showing the back end of the menu setup. When you select Exit setupGPS() is called picking up the settings you have selected. Problem is I never see the message "Setting Up GSP". Do I need to trigger the call to setupGPS() through an interval timer say 10 ms after the call to g.drawString("Configuring GPS",120,120);

About

Avatar for HughB @HughB started