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("