From ec6d4192191983cf427555bdcfdd5e247645ba2b Mon Sep 17 00:00:00 2001 From: korolev Date: Fri, 31 Jan 2025 13:42:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BB=D0=B5=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B7=D0=B0=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=BE?= =?UTF-8?q?=D0=BC=20=D0=BD=D0=B0=D0=B2=D0=B8=D0=B3=D0=B0=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B5=20=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=B2=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=82=D0=B5=D0=BB=D0=B5=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0,=20=D0=BF=D1=80=D0=B8=D1=87=D0=B8=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B9=20-=20?= =?UTF-8?q?=D0=B2=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D0=BA=D1=83=D0=BF=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=B5=D0=BC=D0=B0=D1=82=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B8=20=D1=83=D0=B2=D1=8D=D0=BE=D1=81=20=D1=8D=D1=82=D0=BE?= =?UTF-8?q?=D1=82=20=D0=BC=D0=BE=D0=BC=D0=B5=D0=BD=D1=82=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=BB=D1=8E=D0=B1=D0=B8=D0=BB=D0=B8...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainModesArbiter.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/MainModesArbiter.c b/MainModesArbiter.c index 54ef064..99c03cf 100644 --- a/MainModesArbiter.c +++ b/MainModesArbiter.c @@ -592,15 +592,21 @@ static _Noreturn void Mma_Thread(tMma *env) { Mma_ColorBip(env); -#ifdef UVEOS_ADD_TELEMATICA - if (env->storage.runtime.EGTS_FLEET_ON == false) { - Mma_gnssUpdate(env, &indicationState); - } else { +#ifdef UVEOS_ADD_TELEMATICA + if (env->storage.runtime.EGTS_FLEET_ON == true) { indicationState = GsmWithGnss_IsGnssReady(&env->gsmWithGnss) ? DEVICE_MODE_UVEOS_ERA_GNSS_READY : DEVICE_MODE_UVEOS_ERA_WAIT_GNSS; - + if (env->gsmWithGnss.gnss.currentRmc.status == 'A') { + EraGlonassUveos_DoNothingModeDistance(&env->uveos, true); + Mma_SetMode(env, DEVICE_MODE_UVEOS_ERA_WAIT_GNSS); + } else { + Mma_SetMode(env, DEVICE_MODE_UVEOS_ERA_GNSS_READY); + env->uveos.doNothing.mode = UVEOS_DO_NOTHING_DISABLED; + } + } else { + Mma_gnssUpdate(env, &indicationState); } #endif