From 0bc78bea88b08bc08419848eebb06a6af33cbc7b Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sat, 4 Aug 2018 21:35:40 +1200 Subject: [PATCH] Added reserved space is the case where network backup is disabled --- GpsTracker/Config.cpp | 2 ++ GpsTracker/Config.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/GpsTracker/Config.cpp b/GpsTracker/Config.cpp index 771b057..dfed77e 100644 --- a/GpsTracker/Config.cpp +++ b/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, diff --git a/GpsTracker/Config.h b/GpsTracker/Config.h index a5fc792..5171454 100644 --- a/GpsTracker/Config.h +++ b/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