добавлена процедура екола для Казахстана

This commit is contained in:
parent 595207de4b
commit 7977082045
1 changed files with 4 additions and 1 deletions

View File

@ -259,9 +259,11 @@ void Mma_EcallManualKZ(tMma *env) {
EraGlonassUveos_SetTimings(&env->uveos); EraGlonassUveos_SetTimings(&env->uveos);
Mma_SetMode(env, DEVICE_MODE_UVEOS_CALL_INITIATE); Mma_SetMode(env, DEVICE_MODE_UVEOS_CALL_INITIATE);
Mma_NetworkAndAudioRequireKz(env); Mma_NetworkAndAudioRequireKz(env);
GsmWithGnss_NetworkEnableInnaterups(&env->gsmWithGnss, 5,160000);
GpioPinEnable(&env->power.pins->main.ecall); GpioPinEnable(&env->power.pins->main.ecall);
env->uveos.currentMsd->msd.MSD_Data.msgId = 1; env->uveos.currentMsd->msd.MSD_Data.msgId = 1;
EraGlonassUveos_ManualEmergencyCall(&env->uveos, true); EraGlonassUveos_ManualEmergencyCall(&env->uveos, true);
GpioPinDisable(&env->power.pins->main.ecall); GpioPinDisable(&env->power.pins->main.ecall);
AtGsmTelitLe910_Gnss_ReStartReceiver(&env->gsmWithGnss.gsmAt, 0); AtGsmTelitLe910_Gnss_ReStartReceiver(&env->gsmWithGnss.gsmAt, 0);
@ -686,7 +688,8 @@ static _Noreturn void Mma_Thread(tMma *env) {
#endif #endif
LoggerInfoStatic(LOGGER, LOG_SIGN, "Нажата кнопка экстренного вызова_2") LoggerInfoStatic(LOGGER, LOG_SIGN, "Нажата кнопка экстренного вызова_2")
Mma_EcallManual(env); // Mma_EcallManual(env);
Mma_EcallManualKZ(env);
} else if (UserInputButtonEventIsBetween(buttonEvent, UI_BUTTON_ADDITIONAL, RAISE, 3000, 10000)) { } else if (UserInputButtonEventIsBetween(buttonEvent, UI_BUTTON_ADDITIONAL, RAISE, 3000, 10000)) {
#ifdef UVEOS_ADD_TELEMATICA #ifdef UVEOS_ADD_TELEMATICA