From df8deba47047ea4f36686151f9c1741452ca4f2d Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Mon, 6 Aug 2018 20:28:51 +1200 Subject: [PATCH] Fixed typo and arranged code --- Hardware.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Hardware.cpp b/Hardware.cpp index e257c22..35ffc48 100644 --- a/Hardware.cpp +++ b/Hardware.cpp @@ -61,10 +61,12 @@ namespace hardware { return; } - VEBOSE("gpsPowerOn"); + VERBOSE("gpsPowerOn"); powerOn(); - //SIM808 turns phone on by default but we don't need it - if(!networkPoweredCount) device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM); + if(!networkPoweredCount) { + //SIM808 turns phone on by default but we don't need it for gps only + device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM); + } device.enableGps(); }