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,7 +50,8 @@
toggleGPSPower();
return;
case 2:
gpsObject.toggleGpsLogging();
if (gpsObject.getState() === gpsObject.GPS_RUNNING)
gpsObject.toggleGpsLogging();
return;
}
}