invole c++

This commit is contained in:
gcw_4spBpAfv
2026-01-22 17:55:11 +08:00
parent 945077a453
commit 42bfdd033c
15 changed files with 25424 additions and 1041 deletions

View File

@@ -88,7 +88,7 @@ class ATClient:
self.uart.write((cmd + "\r\n").encode())
t0 = time.ticks_ms()
while time.ticks_ms() - t0 < timeout_ms:
while abs(time.ticks_diff(time.ticks_ms(), t0)) < timeout_ms:
if (not self._waiting) or (self._expect in self._resp):
self._waiting = False
break