Browse Source

Fixed Gprs being disabled after CFUN has been set to the minimum

tags/v1.2.0
Bertrand Lemasle 7 years ago
parent
commit
00f5660f52
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      GpsTracker/Hardware.cpp

+ 2
- 1
GpsTracker/Hardware.cpp View File

@@ -45,6 +45,7 @@ namespace hardware {
VERBOSE("setup");
simSerial.begin(SIM808_BAUDRATE);
device.begin(simSerial);
powerOff(); //ensure powerOff on start
}

void gpsPowerOn() {
@@ -67,8 +68,8 @@ namespace hardware {

void networkPowerOff() {
VERBOSE("networkPowerOff");
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM);
device.disableGprs();
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM);

powerOffIfUnused();
}


Loading…
Cancel
Save