Skip to content
Snippets Groups Projects
Commit 673c9180 authored by Strasser, Andreas's avatar Strasser, Andreas
Browse files

re-init after failed reset

parent 65783bc5
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ class NBIoTResetProcedure : NBIoTProcedure
def init(ser)
super(self).init(ser)
self.cmd_reset = NBIoTCommand('AT+QRST=1\r\n', 'RDY')
self.cmd_reset = NBIoTCommand('AT+QRST=1\r\n', 'RDY', 10)
self.cmd_at = NBIoTCommand('AT\r\n', 'OK')
end
......@@ -242,6 +242,8 @@ class NBIoTResetProcedure : NBIoTProcedure
elif self.cmd_in_process == self.cmd_at
self.done = self.read_rsp_contains_expected_rsp_or_send()
end
self.aborted = self.retries_exceeded()
end
end
......@@ -543,6 +545,8 @@ class NBIoTDriver
else
self.next_state(NBIoTDriverState.DISABLE_PSM)
end
elif self.procedure.is_aborted()
self.next_state(NBIoTDriverState.INIT)
end
elif self.state == NBIoTDriverState.DISABLE_PSM
if self.procedure == nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment