Fix
This commit is contained in:
parent
6ae01d3fd2
commit
b181ce07ef
|
|
@ -533,19 +533,11 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
// Mma_StartTestThreadStart(env);
|
||||
for (;;) {
|
||||
|
||||
|
||||
Mma_ColorBip(env);
|
||||
|
||||
#ifdef UVEOS_ADD_TELEMATICA
|
||||
if (env->storage.runtime.EGTS_FLEET_ON == false) {
|
||||
|
||||
if (osMutexAcquire(env->gsmWithGnss.gsmAt.access, 1000) == osOK) {
|
||||
Mma_gnssUpdate(env, &indicationState);
|
||||
osMutexRelease(env->gsmWithGnss.gsmAt.access);
|
||||
} else {
|
||||
LoggerTraceStatic(LOGGER, LOG_SIGN, "Ошибка доступа (1)")
|
||||
}
|
||||
|
||||
Mma_gnssUpdate(env, &indicationState);
|
||||
} else {
|
||||
if (osMutexAcquire(env->gsmWithGnss.gsmAt.access, 1000) == osOK) {
|
||||
AtGsm_Gsnss_GetNMEA_Pack(&env->gsmWithGnss, 400);
|
||||
|
|
@ -558,13 +550,7 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
#endif
|
||||
|
||||
#ifndef UVEOS_ADD_TELEMATICA
|
||||
if (osMutexAcquire(env->gsmWithGnss.gsmAt.access, 1000) == osOK) {
|
||||
AtGsm_Gsnss_GetNMEA_Pack(&env->gsmWithGnss, 400);
|
||||
osMutexRelease(env->gsmWithGnss.gsmAt.access);
|
||||
SystemDelayMs(1000);
|
||||
} else {
|
||||
LoggerTraceStatic(LOGGER, LOG_SIGN, "Ошибка доступа (2)")
|
||||
}
|
||||
Mma_gnssUpdate(env, &indicationState);
|
||||
#endif
|
||||
|
||||
LoggerTraceStatic(LOGGER, LOG_SIGN, "Начало итерации главного цикла")
|
||||
|
|
@ -620,7 +606,7 @@ static _Noreturn void Mma_Thread(tMma *env) {
|
|||
#endif
|
||||
|
||||
#ifndef UVEOS_ADD_TELEMATICA
|
||||
checkLastInMemTransmit(env);
|
||||
checkLastInMemTransmit(env);
|
||||
#endif
|
||||
|
||||
// LoggerTraceStatic(LOGGER, LOG_SIGN, "Проверяем экстренное событие")
|
||||
|
|
|
|||
Loading…
Reference in New Issue