From b2a8337b34003c1321bb454350d87f92813930a8 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 9 Dec 2024 14:50:31 +0300 Subject: [PATCH] Fix --- GsmWithGnss.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GsmWithGnss.c b/GsmWithGnss.c index 933ef01..c18c502 100644 --- a/GsmWithGnss.c +++ b/GsmWithGnss.c @@ -18,14 +18,16 @@ bool isRtc = false; void GsmWithGnss_Urc(tGsmWithGnss *env, tAtBuffer *buff) { if (AtBufferBeginWithStatic(buff, "SRING: ")) { - SocketSocketGsm_UrcProcessor_SRING(&env->socketGsm, buff); + SocketSocketGsm_UrcProcessor_SRING(&env->socketGsm, buff); return; } if (AtBufferBeginWithStatic(buff, "NO CARRIER")) { - SocketSocketGsm_UrcProcessor_NO_CARRIER(&env->socketGsm, buff); + env->isDisconnect = true; + +// SocketSocketGsm_UrcProcessor_NO_CARRIER(&env->socketGsm, buff); return; }