use kitchen tag when setGPSPower()

master
hughbarney 2021-07-05 22:23:03 +01:00
parent 568b74e0ca
commit 281b2fdb1a
1 changed files with 3 additions and 3 deletions

View File

@ -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();