diff --git a/GpsTracker/Hardware.cpp b/GpsTracker/Hardware.cpp index d62d15f..230c974 100644 --- a/GpsTracker/Hardware.cpp +++ b/GpsTracker/Hardware.cpp @@ -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(); }