Solar Clock: Change of variable name for gps callback installation

master
adrian w kirk 2021-07-27 02:06:16 +01:00
parent e137452baf
commit 66096e5d91
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ class LocationManager {
this.in_use = true;
this.gpsPower = 0;
this.location_info = null;
this.gpsRequested = false;
this.gpsCallbackInstalled = false;
}
init(){
try {
@ -42,11 +42,11 @@ class LocationManager {
});
}
setGPSPower(power){
if(power && !this.gpsRequested){
if(power && !this.gpsCallbackInstalled){
this.initCallback();
this.gpsCallbackInstalled = true;
}
this.gpsPower = power;
this.gpsRequested = true;
Bangle.setGPSPower(this.gpsPower);
}
getGPSPower(){return this.gpsPower;}