Ver código fonte

Added code size comments on config structs

tags/v1.2.0
Bertrand Lemasle 6 anos atrás
pai
commit
d8945d75d2
2 arquivos alterados com 15 adições e 15 exclusões
  1. +10
    -10
      GpsTracker/Config.h
  2. +5
    -5
      GpsTracker/NetworkPositionsConfig.h

+ 10
- 10
GpsTracker/Config.h Ver arquivo

@@ -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 {



+ 5
- 5
GpsTracker/NetworkPositionsConfig.h Ver arquivo

@@ -9,8 +9,8 @@


struct networkConfig_t {
uint8_t saveThreshold;
uint16_t lastSavedEntry;
char apn[20];
char url[50];
};
uint8_t saveThreshold; //sizeof = 1
uint16_t lastSavedEntry; //sizeof = 2
char apn[20]; //sizeof = 20
char url[50]; //sizeof = 50
}; //sizeof = 73

Carregando…
Cancelar
Salvar