From d57a47ef680db158e228bd345ae8eff6054167b4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 11 Mar 2025 16:35:49 +0100 Subject: [PATCH] update --- loop/SARA_send_data_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop/SARA_send_data_v2.py b/loop/SARA_send_data_v2.py index c438cbf..da806c1 100755 --- a/loop/SARA_send_data_v2.py +++ b/loop/SARA_send_data_v2.py @@ -431,7 +431,7 @@ try: #Here it's possible that the SARA do not repond at all #-> try to establish connection #-> end loop, no need to continue - if response2 is None or response2 == "": + if response2 is None or response2 == "" or not any(expected in response2 for expected in ["OK", "ERROR", "+", "AT"]): print("No answer from SARA module") print('🛑STOP LOOP🛑') print("
")