Solar Clock: Change of variable name for gps callback installation
parent
e137452baf
commit
66096e5d91
|
|
@ -7,7 +7,7 @@ class LocationManager {
|
||||||
this.in_use = true;
|
this.in_use = true;
|
||||||
this.gpsPower = 0;
|
this.gpsPower = 0;
|
||||||
this.location_info = null;
|
this.location_info = null;
|
||||||
this.gpsRequested = false;
|
this.gpsCallbackInstalled = false;
|
||||||
}
|
}
|
||||||
init(){
|
init(){
|
||||||
try {
|
try {
|
||||||
|
|
@ -42,11 +42,11 @@ class LocationManager {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setGPSPower(power){
|
setGPSPower(power){
|
||||||
if(power && !this.gpsRequested){
|
if(power && !this.gpsCallbackInstalled){
|
||||||
this.initCallback();
|
this.initCallback();
|
||||||
|
this.gpsCallbackInstalled = true;
|
||||||
}
|
}
|
||||||
this.gpsPower = power;
|
this.gpsPower = power;
|
||||||
this.gpsRequested = true;
|
|
||||||
Bangle.setGPSPower(this.gpsPower);
|
Bangle.setGPSPower(this.gpsPower);
|
||||||
}
|
}
|
||||||
getGPSPower(){return this.gpsPower;}
|
getGPSPower(){return this.gpsPower;}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue