diff --git a/GpsTracker/Config.h b/GpsTracker/Config.h index d3e91b0..f4c689c 100644 --- a/GpsTracker/Config.h +++ b/GpsTracker/Config.h @@ -59,18 +59,18 @@ struct sleepTimings_t { }; struct config_t { - uint8_t seed; - char version[5]; - uint16_t firstEntry; - uint16_t lastEntry; + uint8_t seed; //sizeof = 1 + char version[5]; //sizeof = 5 + uint16_t firstEntry; //sizeof = 2 + uint16_t lastEntry; //sizeof = 2 #if BACKUP_ENABLE_NETWORK - networkConfig_t network; + networkConfig_t network; //sizeof = 73 #endif - uint8_t alertBatteryLevel1; - uint8_t alertBatteryLevel2; - uint8_t alertBatteryLevelClear; - char contactPhone[15]; -}; + uint8_t alertBatteryLevel1; //sizeof = 1 + uint8_t alertBatteryLevel2; //sizeof = 1 + uint8_t alertBatteryLevelClear; //sizeof = 1 + char contactPhone[15]; //sizeof = 15 +}; //sizeof = 28 + 73 = 101 namespace config { diff --git a/GpsTracker/NetworkPositionsConfig.h b/GpsTracker/NetworkPositionsConfig.h index 3313b16..a363b7f 100644 --- a/GpsTracker/NetworkPositionsConfig.h +++ b/GpsTracker/NetworkPositionsConfig.h @@ -9,8 +9,8 @@ struct networkConfig_t { - uint8_t saveThreshold; - uint16_t lastSavedEntry; - char apn[20]; - char url[50]; -}; \ No newline at end of file + uint8_t saveThreshold; //sizeof = 1 + uint16_t lastSavedEntry; //sizeof = 2 + char apn[20]; //sizeof = 20 + char url[50]; //sizeof = 50 +}; //sizeof = 73 \ No newline at end of file