File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 45
45
__version__ = "0.0.0-auto.0"
46
46
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RockBlock.git"
47
47
48
+
48
49
class RockBlock :
49
- ''' Driver for RockBLOCK Iridium satellite modem.'''
50
+ """ Driver for RockBLOCK Iridium satellite modem."""
50
51
51
52
def __init__ (self , uart , baudrate = 19200 ):
52
53
self ._uart = uart
53
54
self ._uart .baudrate = baudrate
54
55
55
56
def _uart_xfer (self , cmd ):
56
- ''' Send AT command and return response.'''
57
+ """ Send AT command and return response."""
57
58
# response = ATCMD\r\nRESP\r\n\r\nOK\r\n
58
59
# or = ATCMD\r\nERROR\r\n
59
60
60
- cmd = str .encode ('AT' + cmd )
61
+ cmd = str .encode ("AT" + cmd )
61
62
62
63
self ._uart .reset_input_buffer ()
63
- self ._uart .write (cmd + ' \r ' )
64
+ self ._uart .write (cmd + " \r " )
64
65
65
66
resp = None
66
67
if self ._uart .readline ().strip () == cmd :
@@ -71,5 +72,5 @@ def _uart_xfer(self, cmd):
71
72
72
73
@property
73
74
def model (self ):
74
- ''' Return phone model.'''
75
- return self ._uart_xfer (' +GMM' )
75
+ """ Return phone model."""
76
+ return self ._uart_xfer (" +GMM" )
You can’t perform that action at this time.
0 commit comments