diff --git a/GsmWithGnss.c b/GsmWithGnss.c index 7c0450d..90a340b 100644 --- a/GsmWithGnss.c +++ b/GsmWithGnss.c @@ -158,7 +158,7 @@ bool GsmWithGnss_WaitNetworkRegistration(tGsmWithGnss *env, uint32_t timeReg) { return true; } } - SystemDelayMs(50); + SystemDelayMs(200); } return false; } diff --git a/GsmWithGnss_GnssOps.c b/GsmWithGnss_GnssOps.c index 655fb19..24dad65 100644 --- a/GsmWithGnss_GnssOps.c +++ b/GsmWithGnss_GnssOps.c @@ -33,6 +33,11 @@ AtCommandResult GsmWithGnssInitGnss(tGsmWithGnss *env) { AT_INOKR(AtGsmTelitLe910_Gnss_ClearStaticBufFix(&env->gsmAt)); SystemDelayMs(200); AT_INOKR(AtGsmTelitLe910_Gnss_ReStartReceiver(&env->gsmAt, 1)); + SystemDelayMs(3000); + GsmWithGnss_SelectStandartNetwork(&env->gsmAt, 25); + SystemDelayMs(3000); +// AtGsm_OperatorSelectionDeregister(&env->gsmAt); + AtGsmTelitLe910_GnssEcallOnlyMode(&env->gsmAt, 0); osMutexRelease(env->gsmAt.access); return AT_OK; } else {