feat: Ensure that echo is enabled before other operations
This commit is contained in:
parent
2780e3cc5d
commit
7824708fb1
1 changed files with 1 additions and 0 deletions
1
api.py
1
api.py
|
@ -66,6 +66,7 @@ class Modem:
|
|||
return res.decode('utf-8') # decode to string
|
||||
|
||||
def reset(self):
|
||||
self.send('ATE1')
|
||||
res = self.send('ATZ')
|
||||
if res != 'OK':
|
||||
raise InvalidResponseException(res)
|
||||
|
|
Loading…
Reference in a new issue