File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def _init_fona(self):
157157
158158 if self ._debug :
159159 print ("Attempting to open comm with ATs" )
160- timeout = 7
160+ timeout = 7000
161161 while timeout > 0 :
162162 if self ._send_check_reply (CMD_AT , reply = REPLY_OK ):
163163 break
@@ -793,7 +793,6 @@ def _get_reply(
793793 print ("\t ---> {}{}" .format (prefix , suffix ))
794794 self ._uart .write (prefix + suffix + b"\r \n " )
795795
796- self ._buf = b""
797796 line = self ._read_line (timeout )
798797
799798 if self ._debug :
@@ -882,8 +881,9 @@ def _send_check_reply(
882881 else :
883882 if not self ._get_reply (send , timeout = timeout ):
884883 return False
884+
885885 # validate response
886- if not reply in self . _buf :
886+ if not reply :
887887 return False
888888
889889 return True
You can’t perform that action at this time.
0 commit comments