@@ -337,9 +337,7 @@ def _set_gprs(self, gprs_on=True):
337337 self ._send_check_reply (b"AT+SAPBR=1,1" , reply = b"" , timeout = 100000 )
338338
339339 # Bring up wireless connection
340- if not self ._send_check_reply (
341- b"AT+CIICR" , reply = REPLY_OK , timeout = 10000
342- ):
340+ if not self ._send_check_reply (b"AT+CIICR" , reply = REPLY_OK , timeout = 10000 ):
343341 return False
344342
345343 else :
@@ -356,14 +354,11 @@ def _set_gprs(self, gprs_on=True):
356354 return False
357355
358356 # detach from gprs service
359- if not self ._send_check_reply (
360- b"AT+CGATT=0" , reply = REPLY_OK , timeout = 10000
361- ):
357+ if not self ._send_check_reply (b"AT+CGATT=0" , reply = REPLY_OK , timeout = 10000 ):
362358 return False
363359
364360 return True
365361
366-
367362 @property
368363 def network_status (self ):
369364 """Returns cellular/network status"""
@@ -390,7 +385,6 @@ def network_status(self):
390385 # "Unknown"
391386 return self ._buf
392387
393-
394388 @property
395389 def rssi (self ):
396390 """Returns cellular network's Received Signal Strength Indicator (RSSI)."""
@@ -471,8 +465,12 @@ def _set_gps(self, gps_on=False):
471465 """
472466 if self ._debug :
473467 print ("* Setting GPS" )
474- if not (self ._fona_type == FONA_3G_A or self ._fona_type == FONA_3G_E or
475- self ._fona_type == FONA_808_V1 or self ._fona_type == FONA_808_V2 ):
468+ if not (
469+ self ._fona_type == FONA_3G_A
470+ or self ._fona_type == FONA_3G_E
471+ or self ._fona_type == FONA_808_V1
472+ or self ._fona_type == FONA_808_V2
473+ ):
476474 raise TypeError ("GPS unsupported for this FONA module." )
477475
478476 # check if already enabled or disabled
0 commit comments