Fix
This commit is contained in:
parent
0d00d72b92
commit
c9e3947ad4
|
|
@ -7,8 +7,11 @@
|
||||||
|
|
||||||
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env) {
|
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env) {
|
||||||
env->enableGnssUpdate = true;
|
env->enableGnssUpdate = true;
|
||||||
env->EGTS_FLEET_ON = false;
|
|
||||||
env->disallowWrite = 0;
|
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);
|
ADD_VAR_SIZE(STRING, DEV_VERSION, (void *) META_FW_NAME, (void *) &META_FW_NAME_SIZE, VARIABLES_GROUP);
|
||||||
VariablesTable_GetLast(variablesTable)->writeAttempts = &env->disallowWrite;
|
VariablesTable_GetLast(variablesTable)->writeAttempts = &env->disallowWrite;
|
||||||
|
|
||||||
|
#ifdef UVEOS_ADD_TELEMATICA
|
||||||
ADD_VAR(BOOL, EGTS_FLEET_ON, &env->EGTS_FLEET_ON);
|
ADD_VAR(BOOL, EGTS_FLEET_ON, &env->EGTS_FLEET_ON);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef ADD_VAR_SIZE
|
#undef ADD_VAR_SIZE
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,13 @@ typedef struct {
|
||||||
bool enableGnssUpdate;
|
bool enableGnssUpdate;
|
||||||
uint16_t disallowWrite;
|
uint16_t disallowWrite;
|
||||||
|
|
||||||
|
#ifdef UVEOS_ADD_TELEMATICA
|
||||||
bool EGTS_FLEET_ON;
|
bool EGTS_FLEET_ON;
|
||||||
bool telematicaServerIsActive;
|
bool telematicaServerIsActive;
|
||||||
bool telematicaCloseConnect;
|
bool telematicaCloseConnect;
|
||||||
bool telematicaWaitConnect;
|
bool telematicaWaitConnect;
|
||||||
|
#endif
|
||||||
|
|
||||||
} tDeviceDataRuntime;
|
} tDeviceDataRuntime;
|
||||||
|
|
||||||
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env);
|
void DeviceDataRuntime_InitDefaults(tDeviceDataRuntime *env);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue