|
@@ -55,6 +55,8 @@ namespace hardware { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void gpsPowerOff() { |
|
|
void gpsPowerOff() { |
|
|
|
|
|
if (!device.powered()) return; |
|
|
|
|
|
|
|
|
VERBOSE("gpsPowerOff"); |
|
|
VERBOSE("gpsPowerOff"); |
|
|
device.disableGps(); |
|
|
device.disableGps(); |
|
|
powerOffIfUnused(); |
|
|
powerOffIfUnused(); |
|
@@ -67,6 +69,8 @@ namespace hardware { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void networkPowerOff() { |
|
|
void networkPowerOff() { |
|
|
|
|
|
if (!device.powered()) return; |
|
|
|
|
|
|
|
|
VERBOSE("networkPowerOff"); |
|
|
VERBOSE("networkPowerOff"); |
|
|
device.disableGprs(); |
|
|
device.disableGprs(); |
|
|
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM); |
|
|
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM); |
|
|