Добавлено включение ТЕЛЕМАТИКИ после истечения таймеров

This commit is contained in:
cfif 2024-12-19 15:13:08 +03:00
parent 1c439c330a
commit 9db4cd2be8
1 changed files with 7 additions and 2 deletions

View File

@ -114,8 +114,10 @@ void Mma_CheckShutdown(tMma *env, bool fastBlackOut) {
} else {
#ifdef UVEOS_ADD_TELEMATICA
if (env->storage.runtime.EGTS_FLEET_ON == false)
TELEMATICA_START(env);
if ((!statStandUp)) {
if (env->storage.runtime.EGTS_FLEET_ON == false)
TELEMATICA_START(env);
}
#endif
}
@ -663,6 +665,9 @@ static _Noreturn void Mma_Thread(tMma *env) {
if (UveosEmergencyEvent_GetNext(&env->crashDetect.emergencyEvents, &emergencyEvent, 0)) {
if (env->storage.nvm.gost.CRASH_SIGNAL_INTERNAL == 1) {
LoggerInfoStatic(LOGGER, LOG_SIGN, "Экстренное событие получено");
#ifdef UVEOS_ADD_TELEMATICA
TELEMATICA_STOP(env);
#endif
Mma_EcallAutomatic(env, emergencyEvent);
}
}