From 2d4bd35c63a856866dba65929a31ebc7aa1b8070 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sat, 4 Aug 2018 15:01:31 +1200 Subject: [PATCH] Disable rewrite of config values (only here for the first run on old firmwares) --- GpsTracker/Config.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/GpsTracker/Config.cpp b/GpsTracker/Config.cpp index 5306df2..ad3cb7a 100644 --- a/GpsTracker/Config.cpp +++ b/GpsTracker/Config.cpp @@ -29,14 +29,13 @@ namespace config { // POSITIONS_CONFIG_NET_DEFAULT_URL, //}; //value.network = c; - - strcpy(value.version, VERSION); +#endif + /*strcpy(value.version, VERSION); value.alertBatteryLevel1 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1; value.alertBatteryLevel2 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2; value.alertBatteryLevelClear = CONFIG_DEFAULT_BATTERY_ALERT_CLEAR; value.activeAlerts = 0; - strcpy(value.contactPhone, CONFIG_DEFAULT_CONTACT_PHONE); -#endif + strcpy(value.contactPhone, CONFIG_DEFAULT_CONTACT_PHONE);*/ } void write() { @@ -52,7 +51,7 @@ namespace config { void setup() { details::read(); - details::write(); + //details::write(); } void save() {