1
0
Fork 0

clkinfogps set gps power on to 90 seconds after getting fix

master
Hugh Barney 2023-04-22 02:14:18 +01:00
parent 0d188678cc
commit 84a85b6de9
1 changed files with 2 additions and 2 deletions

View File

@ -39,11 +39,11 @@
}
// power off the GPS
Bangle.setGPSPower(0,"clkinfo");
// power on the GPS again in 3 minutes
// power on the GPS again in 90 seconds
timeout = setTimeout(function() {
timeout = undefined;
Bangle.setGPSPower(1,"clkinfo");
}, 180000);
}, 90000);
}
info.items[0].emit("redraw");
};