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