Добавлено функция включения/отключения телематики
This commit is contained in:
parent
5fa0a934cc
commit
8ec04f8d3f
|
|
@ -19,23 +19,29 @@
|
||||||
#ifdef UVEOS_ADD_TELEMATICA
|
#ifdef UVEOS_ADD_TELEMATICA
|
||||||
|
|
||||||
void TELEMATICA_START(tMma *env) {
|
void TELEMATICA_START(tMma *env) {
|
||||||
env->storage.runtime.EGTS_FLEET_ON = true;
|
|
||||||
|
if (env->storage.nvm.deviceTeledataStorageData.telematica.telematicaIsActive) {
|
||||||
|
env->storage.runtime.EGTS_FLEET_ON = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TELEMATICA_STOP(tMma *env) {
|
void TELEMATICA_STOP(tMma *env) {
|
||||||
|
|
||||||
if (env->storage.runtime.EGTS_FLEET_ON == true) {
|
if (env->storage.runtime.EGTS_FLEET_ON) {
|
||||||
|
|
||||||
env->storage.runtime.EGTS_FLEET_ON = false;
|
if (env->storage.runtime.EGTS_FLEET_ON == true) {
|
||||||
|
|
||||||
for (uint8_t i = 0; i < 30; ++i) {
|
env->storage.runtime.EGTS_FLEET_ON = false;
|
||||||
if (env->storage.runtime.telematicaCloseConnect)
|
|
||||||
break;
|
|
||||||
|
|
||||||
SystemDelayMs(100);
|
for (uint8_t i = 0; i < 30; ++i) {
|
||||||
|
if (env->storage.runtime.telematicaCloseConnect)
|
||||||
|
break;
|
||||||
|
|
||||||
|
SystemDelayMs(100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue