浏览代码

Disable rewrite of config values (only here for the first run on old firmwares)

tags/v1.2.0
Bertrand Lemasle 6 年前
父节点
当前提交
2d4bd35c63
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. +4
    -5
      GpsTracker/Config.cpp

+ 4
- 5
GpsTracker/Config.cpp 查看文件

@@ -29,14 +29,13 @@ namespace config {
// POSITIONS_CONFIG_NET_DEFAULT_URL, // POSITIONS_CONFIG_NET_DEFAULT_URL,
//}; //};
//value.network = c; //value.network = c;
strcpy(value.version, VERSION);
#endif
/*strcpy(value.version, VERSION);
value.alertBatteryLevel1 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1; value.alertBatteryLevel1 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1;
value.alertBatteryLevel2 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2; value.alertBatteryLevel2 = CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2;
value.alertBatteryLevelClear = CONFIG_DEFAULT_BATTERY_ALERT_CLEAR; value.alertBatteryLevelClear = CONFIG_DEFAULT_BATTERY_ALERT_CLEAR;
value.activeAlerts = 0; value.activeAlerts = 0;
strcpy(value.contactPhone, CONFIG_DEFAULT_CONTACT_PHONE);
#endif
strcpy(value.contactPhone, CONFIG_DEFAULT_CONTACT_PHONE);*/
} }


void write() { void write() {
@@ -52,7 +51,7 @@ namespace config {


void setup() { void setup() {
details::read(); details::read();
details::write();
//details::write();
} }


void save() { void save() {


正在加载...
取消
保存