diff --git a/DeviceDataRuntime.c b/DeviceDataRuntime.c index 8b5856b..abd4847 100644 --- a/DeviceDataRuntime.c +++ b/DeviceDataRuntime.c @@ -7,8 +7,11 @@ void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env) { env->enableGnssUpdate = true; - env->EGTS_FLEET_ON = false; env->disallowWrite = 0; + +#ifdef UVEOS_ADD_TELEMATICA + env->EGTS_FLEET_ON = false; +#endif } @@ -37,7 +40,10 @@ void DeviceDataRuntime_AddToVarTab( ADD_VAR_SIZE(STRING, DEV_VERSION, (void *) META_FW_NAME, (void *) &META_FW_NAME_SIZE, VARIABLES_GROUP); VariablesTable_GetLast(variablesTable)->writeAttempts = &env->disallowWrite; +#ifdef UVEOS_ADD_TELEMATICA ADD_VAR(BOOL, EGTS_FLEET_ON, &env->EGTS_FLEET_ON); +#endif + } #undef ADD_VAR_SIZE diff --git a/DeviceDataRuntime.h b/DeviceDataRuntime.h index ffbb139..6f6d80e 100644 --- a/DeviceDataRuntime.h +++ b/DeviceDataRuntime.h @@ -13,10 +13,13 @@ typedef struct { bool enableGnssUpdate; uint16_t disallowWrite; +#ifdef UVEOS_ADD_TELEMATICA bool EGTS_FLEET_ON; bool telematicaServerIsActive; bool telematicaCloseConnect; bool telematicaWaitConnect; +#endif + } tDeviceDataRuntime; void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env);