use kitchen tag when setGPSPower()
parent
568b74e0ca
commit
281b2fdb1a
|
|
@ -95,8 +95,8 @@ function setButtons(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Bangle.on('kill',()=>{
|
Bangle.on('kill',()=>{
|
||||||
Bangle.setCompassPower(0);
|
Bangle.setCompassPower(0,'kitchen');
|
||||||
Bangle.setGPSPower(0);
|
Bangle.setGPSPower(0,'kitchen');
|
||||||
});
|
});
|
||||||
|
|
||||||
Bangle.on('lcdPower',function(on) {
|
Bangle.on('lcdPower',function(on) {
|
||||||
|
|
@ -215,7 +215,7 @@ GPS.prototype.toggleGPSPower = function() {
|
||||||
this.log_debug("toggleGPSPower()");
|
this.log_debug("toggleGPSPower()");
|
||||||
this.gpsPowerState = Bangle.isGPSOn();
|
this.gpsPowerState = Bangle.isGPSOn();
|
||||||
this.gpsPowerState = !this.gpsPowerState;
|
this.gpsPowerState = !this.gpsPowerState;
|
||||||
Bangle.setGPSPower(this.gpsPowerState ? 1 : 0);
|
Bangle.setGPSPower((this.gpsPowerState ? 1 : 0), 'kitchen');
|
||||||
|
|
||||||
this.resetLastFix();
|
this.resetLastFix();
|
||||||
this.determineGPSState();
|
this.determineGPSState();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue