From 797708204519adf2d422f71d43b34389254e3765 Mon Sep 17 00:00:00 2001 From: korolev Date: Mon, 16 Dec 2024 16:48:24 +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=B0=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=B4=D1=83=D1=80?= =?UTF-8?q?=D0=B0=20=D0=B5=D0=BA=D0=BE=D0=BB=D0=B0=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=9A=D0=B0=D0=B7=D0=B0=D1=85=D1=81=D1=82=D0=B0=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainModesArbiter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MainModesArbiter.c b/MainModesArbiter.c index 0b25a49..ac198b9 100644 --- a/MainModesArbiter.c +++ b/MainModesArbiter.c @@ -259,9 +259,11 @@ void Mma_EcallManualKZ(tMma *env) { EraGlonassUveos_SetTimings(&env->uveos); Mma_SetMode(env, DEVICE_MODE_UVEOS_CALL_INITIATE); Mma_NetworkAndAudioRequireKz(env); + GsmWithGnss_NetworkEnableInnaterups(&env->gsmWithGnss, 5,160000); GpioPinEnable(&env->power.pins->main.ecall); env->uveos.currentMsd->msd.MSD_Data.msgId = 1; EraGlonassUveos_ManualEmergencyCall(&env->uveos, true); + GpioPinDisable(&env->power.pins->main.ecall); AtGsmTelitLe910_Gnss_ReStartReceiver(&env->gsmWithGnss.gsmAt, 0); @@ -686,7 +688,8 @@ static _Noreturn void Mma_Thread(tMma *env) { #endif LoggerInfoStatic(LOGGER, LOG_SIGN, "Нажата кнопка экстренного вызова_2") - Mma_EcallManual(env); +// Mma_EcallManual(env); + Mma_EcallManualKZ(env); } else if (UserInputButtonEventIsBetween(buttonEvent, UI_BUTTON_ADDITIONAL, RAISE, 3000, 10000)) { #ifdef UVEOS_ADD_TELEMATICA