only toggle gps logger if GPS is in RUNNING state
parent
53fc24ee01
commit
076249bd9f
|
|
@ -50,6 +50,7 @@
|
||||||
toggleGPSPower();
|
toggleGPSPower();
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 2:
|
||||||
|
if (gpsObject.getState() === gpsObject.GPS_RUNNING)
|
||||||
gpsObject.toggleGpsLogging();
|
gpsObject.toggleGpsLogging();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue