This commit is contained in:
cfif 2024-12-12 17:25:48 +03:00
parent 0d00d72b92
commit c9e3947ad4
2 changed files with 10 additions and 1 deletions

View File

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

View File

@ -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);