@@ -516,7 +516,7 @@ def num_sms(self, sim_storage=True):
516
516
if not self ._send_check_reply (b"AT+CMGF=1" , reply = REPLY_OK ):
517
517
return False
518
518
519
- if sim_storage : # ask how many SMS are stored
519
+ if sim_storage : # ask how many SMS are stored
520
520
if self ._send_parse_reply (b"AT+CPMS?" , FONA_SMS_STORAGE_SIM + b"," , idx = 1 ):
521
521
return self ._buf
522
522
else :
@@ -607,7 +607,7 @@ def get_socket(self):
607
607
self ._read_line (100 ) # table header
608
608
609
609
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
611
611
self ._read_line (100 )
612
612
self ._parse_reply (b"C:" , idx = 5 )
613
613
if self ._buf .strip ('"' ) == "INITIAL" or self ._buf .strip ('"' ) == "CLOSED" :
@@ -648,7 +648,7 @@ def socket_status(self, sock_num):
648
648
return False
649
649
self ._read_line ()
650
650
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
652
652
self ._read_line ()
653
653
if state == sock_num :
654
654
break
@@ -899,9 +899,9 @@ def _read_line(self, timeout=FONA_DEFAULT_TIMEOUT_MS, multiline=False):
899
899
if char == b"\r " :
900
900
continue
901
901
if char == b"\n " :
902
- if reply_idx == 0 : # ignore first '\n'
902
+ if reply_idx == 0 : # ignore first '\n'
903
903
continue
904
- if not multiline : # second '\n' is EOL
904
+ if not multiline : # second '\n' is EOL
905
905
timeout = 0
906
906
break
907
907
self ._buf += char
0 commit comments