Добавлено функция включения/отключения телематики

This commit is contained in:
cfif 2024-12-19 11:28:41 +03:00
parent 5fa0a934cc
commit 8ec04f8d3f
1 changed files with 14 additions and 8 deletions

View File

@ -19,11 +19,16 @@
#ifdef UVEOS_ADD_TELEMATICA #ifdef UVEOS_ADD_TELEMATICA
void TELEMATICA_START(tMma *env) { void TELEMATICA_START(tMma *env) {
if (env->storage.nvm.deviceTeledataStorageData.telematica.telematicaIsActive) {
env->storage.runtime.EGTS_FLEET_ON = true; env->storage.runtime.EGTS_FLEET_ON = true;
}
} }
void TELEMATICA_STOP(tMma *env) { void TELEMATICA_STOP(tMma *env) {
if (env->storage.runtime.EGTS_FLEET_ON) {
if (env->storage.runtime.EGTS_FLEET_ON == true) { if (env->storage.runtime.EGTS_FLEET_ON == true) {
env->storage.runtime.EGTS_FLEET_ON = false; env->storage.runtime.EGTS_FLEET_ON = false;
@ -36,6 +41,7 @@ void TELEMATICA_STOP(tMma *env) {
} }
} }
}
} }
#endif #endif