소스 검색

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,
//};
//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() {


불러오는 중...
취소
저장