Исправлена прединициализация перед запуском задачи
This commit is contained in:
parent
6c947a0476
commit
5fa0a934cc
|
|
@ -17,6 +17,7 @@
|
|||
#define LOGGER &env->slog.logger
|
||||
|
||||
#ifdef UVEOS_ADD_TELEMATICA
|
||||
|
||||
void TELEMATICA_START(tMma *env) {
|
||||
env->storage.runtime.EGTS_FLEET_ON = true;
|
||||
}
|
||||
|
|
@ -36,6 +37,7 @@ void TELEMATICA_STOP(tMma *env) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
@ -536,15 +538,8 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
} else {
|
||||
LoggerInfoStatic(LOGGER, LOG_SIGN, "Сеть или сим-чип отсутствует");
|
||||
}
|
||||
} else {
|
||||
|
||||
#ifdef UVEOS_ADD_TELEMATICA
|
||||
TELEMATICA_START(env);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
Pwm_AudioDisable(&env->power);
|
||||
LoggerTraceStatic(LOGGER, LOG_SIGN, "Звуковой усилитель отключён")
|
||||
AtGsm_OperatorSelectionDeregister(&env->gsmWithGnss.gsmAt);
|
||||
|
|
@ -552,9 +547,14 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
AtGsmTelitLe910_GnssEcallOnlyMode(&env->gsmWithGnss.gsmAt, 0);
|
||||
SystemDelayMs(2000);
|
||||
GsmWithGnss_SelectStandartNetwork(&env->gsmWithGnss.gsmAt, 25);
|
||||
|
||||
#ifdef UVEOS_ADD_TELEMATICA
|
||||
if (noSendMsdCount == 0) {
|
||||
TELEMATICA_START(env);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Mma_StartTestThreadStart(env);
|
||||
*/
|
||||
SystemDelayMs(100);
|
||||
|
||||
for (;;) {
|
||||
|
||||
|
|
@ -680,9 +680,7 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
TELEMATICA_STOP(env);
|
||||
#endif
|
||||
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
|
||||
TELEMATICA_STOP(env);
|
||||
|
|
|
|||
Loading…
Reference in New Issue