From ca97ccd13fe951fd8cc523575174371bbb09a9a5 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sat, 4 Aug 2018 18:00:04 +1200 Subject: [PATCH] Added CONFIG_DEFAULT_ACTIVE_ALERTS constant for readibility --- GpsTracker/Config.cpp | 4 ++-- GpsTracker/Config.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GpsTracker/Config.cpp b/GpsTracker/Config.cpp index 3174880..0b79a58 100644 --- a/GpsTracker/Config.cpp +++ b/GpsTracker/Config.cpp @@ -34,7 +34,7 @@ namespace config { value.alertBatteryLevel1 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1; value.alertBatteryLevel2 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2; value.alertBatteryLevelClear = CONFIG_DEFAULT_BATTERY_ALERT_CLEAR; - value.activeAlerts = 0; + value.activeAlerts = CONFIG_DEFAULT_ACTIVE_ALERTS; strcpy(value.contactPhone, CONFIG_DEFAULT_CONTACT_PHONE);*/ } @@ -76,7 +76,7 @@ namespace config { CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1, CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2, CONFIG_DEFAULT_BATTERY_ALERT_CLEAR, - 0, + CONFIG_DEFAULT_ACTIVE_ALERTS, CONFIG_DEFAULT_CONTACT_PHONE #endif }; diff --git a/GpsTracker/Config.h b/GpsTracker/Config.h index c057de4..a5fc792 100644 --- a/GpsTracker/Config.h +++ b/GpsTracker/Config.h @@ -18,6 +18,7 @@ #define CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1 45 #define CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2 38 #define CONFIG_DEFAULT_BATTERY_ALERT_CLEAR 60 +#define CONFIG_DEFAULT_ACTIVE_ALERTS 0 #define CONFIG_DEFAULT_CONTACT_PHONE "+642568452" #define SLEEP_TIMING_TIME(hours, minutes) hours * 60 + minutes