Update app.js

pull/668/head
nujw 2021-02-05 09:01:14 +13:00 committed by GitHub
parent 19186dfae4
commit 961c5e4718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -221,6 +221,8 @@ function doFix() {
var di = '---';
var age = '---';
print(lf.fix+' '+lf.alt);
if (lf.fix == 1 ) {
// Speed
if ( settings.spd == 0 ) {
@ -360,9 +362,12 @@ function isLP() {
function setLpMode(on) {
if ( !lp ) return;
var settings = WIDGETS.gpsservice.gps_get_settings();
settings.gpsservice = true;
settings.power_mode = (on)?'PSMOO':'SuperE';
var s = WIDGETS.gpsservice.gps_get_settings();
s.gpsservice = true;
s.power_mode = (on)?'PSMOO':'SuperE';
print( s.power_mode );
WIDGETS.gpsservice.gps_set_settings(settings);
WIDGETS.gpsservice.reload();
}