From 2326a2d497a07cce62501c6793547d2b6a66e742 Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 24 Dec 2024 16:57:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BE=D0=B4=D0=BD=D0=BE=D0=B7=D0=BD=D0=B0=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C=20=D0=AD?= =?UTF-8?q?=D0=A0=D0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainModesArbiter.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/MainModesArbiter.c b/MainModesArbiter.c index 0d6034e..8c305de 100644 --- a/MainModesArbiter.c +++ b/MainModesArbiter.c @@ -30,19 +30,18 @@ void TELEMATICA_STOP(tMma *env) { if (env->storage.runtime.EGTS_FLEET_ON) { - if (env->storage.runtime.EGTS_FLEET_ON == true) { + env->storage.runtime.EGTS_FLEET_ON = false; - env->storage.runtime.EGTS_FLEET_ON = false; + for (uint8_t i = 0; i < 30; ++i) { + if (env->storage.runtime.telematicaCloseConnect) + break; - for (uint8_t i = 0; i < 30; ++i) { - if (env->storage.runtime.telematicaCloseConnect) - break; - - SystemDelayMs(100); - } + SystemDelayMs(100); } + Gsm_SetProfileERA(&env->egtsProcessing); } + } #endif