@@ -516,7 +516,7 @@ def num_sms(self, sim_storage=True):
516516 if not self ._send_check_reply (b"AT+CMGF=1" , reply = REPLY_OK ):
517517 return False
518518
519- if sim_storage : # ask how many SMS are stored
519+ if sim_storage : # ask how many SMS are stored
520520 if self ._send_parse_reply (b"AT+CPMS?" , FONA_SMS_STORAGE_SIM + b"," , idx = 1 ):
521521 return self ._buf
522522 else :
@@ -607,7 +607,7 @@ def get_socket(self):
607607 self ._read_line (100 ) # table header
608608
609609 allocated_socket = 0
610- for sock in range (0 , FONA_MAX_SOCKETS ): # check if INITIAL state
610+ for sock in range (0 , FONA_MAX_SOCKETS ): # check if INITIAL state
611611 self ._read_line (100 )
612612 self ._parse_reply (b"C:" , idx = 5 )
613613 if self ._buf .strip ('"' ) == "INITIAL" or self ._buf .strip ('"' ) == "CLOSED" :
@@ -648,7 +648,7 @@ def socket_status(self, sock_num):
648648 return False
649649 self ._read_line ()
650650
651- for state in range (0 , sock_num + 1 ): # read "C: <n>" for each active connection
651+ for state in range (0 , sock_num + 1 ): # read "C: <n>" for each active connection
652652 self ._read_line ()
653653 if state == sock_num :
654654 break
@@ -899,9 +899,9 @@ def _read_line(self, timeout=FONA_DEFAULT_TIMEOUT_MS, multiline=False):
899899 if char == b"\r " :
900900 continue
901901 if char == b"\n " :
902- if reply_idx == 0 : # ignore first '\n'
902+ if reply_idx == 0 : # ignore first '\n'
903903 continue
904- if not multiline : # second '\n' is EOL
904+ if not multiline : # second '\n' is EOL
905905 timeout = 0
906906 break
907907 self ._buf += char
0 commit comments