瀏覽代碼

Added reserved space is the case where network backup is disabled

tags/v1.2.0
Bertrand Lemasle 6 年之前
父節點
當前提交
0bc78bea88
共有 2 個檔案被更改,包括 4 行新增0 行删除
  1. +2
    -0
      GpsTracker/Config.cpp
  2. +2
    -0
      GpsTracker/Config.h

+ 2
- 0
GpsTracker/Config.cpp 查看文件

@@ -73,6 +73,8 @@ namespace config {
POSITIONS_CONFIG_NET_DEFAULT_APN,
POSITIONS_CONFIG_NET_DEFAULT_URL,
},
#else
"",
#endif
CONFIG_DEFAULT_BATTERY_ALERT_LEVEL1,
CONFIG_DEFAULT_BATTERY_ALERT_LEVEL2,


+ 2
- 0
GpsTracker/Config.h 查看文件

@@ -66,6 +66,8 @@ struct config_t {
uint16_t lastEntry; //sizeof = 2
#if BACKUP_ENABLE_NETWORK
networkConfig_t network; //sizeof = 73
#else
char reserved[73];
#endif
uint8_t alertBatteryLevel1; //sizeof = 1
uint8_t alertBatteryLevel2; //sizeof = 1


Loading…
取消
儲存