diff --git a/GsmWithGnss.c b/GsmWithGnss.c index 8a92e81..e16e29e 100644 --- a/GsmWithGnss.c +++ b/GsmWithGnss.c @@ -191,7 +191,7 @@ void Gsm_WaitGsmBoot(tGsmWithGnss *env) { struct tm tmtime; SystemDelayMs(6000); AtGsm_GetTime(&env->gsmAt, &tmtime); - //RtcSetTM(env->Rtc, &tmtime); + RtcSetTM(env->Rtc, &tmtime); uint32_t time = SystemGetMs() + 20000; while (time > SystemGetMs()) { diff --git a/GsmWithGnss_GnssOps.c b/GsmWithGnss_GnssOps.c index d75d5f3..655fb19 100644 --- a/GsmWithGnss_GnssOps.c +++ b/GsmWithGnss_GnssOps.c @@ -25,7 +25,7 @@ bool fl_rtcIsUsed = false; AtCommandResult GsmWithGnssInitGnss(tGsmWithGnss *env) { - if (osMutexAcquire(&env->gsmAt.access, 5000) == osOK) { + if (osMutexAcquire(env->gsmAt.access, 5000) == osOK) { AT_INOKR(AtGsmTelitLe910_GnssSwitchOnRestoreParam(&env->gsmAt)) SystemDelayMs(200); AT_INOKR(AtGsmTelitLe910_Gnss_ClearNvramGnssBuf(&env->gsmAt)); @@ -33,7 +33,7 @@ AtCommandResult GsmWithGnssInitGnss(tGsmWithGnss *env) { AT_INOKR(AtGsmTelitLe910_Gnss_ClearStaticBufFix(&env->gsmAt)); SystemDelayMs(200); AT_INOKR(AtGsmTelitLe910_Gnss_ReStartReceiver(&env->gsmAt, 1)); - osMutexRelease(&env->gsmAt.access); + osMutexRelease(env->gsmAt.access); return AT_OK; } else { LoggerInfoStatic(LOGGER, LOG_SIGN, "Ошибка доступа AtGsmTelitLe910_SimProfileSelect")