only toggle gps logger if GPS is in RUNNING state

master
hughbarney 2021-07-05 22:11:56 +01:00
parent 53fc24ee01
commit 076249bd9f
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@
toggleGPSPower(); toggleGPSPower();
return; return;
case 2: case 2:
if (gpsObject.getState() === gpsObject.GPS_RUNNING)
gpsObject.toggleGpsLogging(); gpsObject.toggleGpsLogging();
return; return;
} }