Skip to content

Commit d34466a

Browse files
Abandon-htlbuque
authored andcommitted
libs/module/llm.py: Fix the serial port reception bug.
Signed-off-by: LittleMouse <[email protected]>
1 parent eaa1741 commit d34466a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m5stack/libs/module/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_response(self, timeout=5000):
2828
if data:
2929
response += data.decode("utf-8")
3030
if "\n" in response:
31-
break
31+
return {"time_out": False, "msg": response}
3232
start_time = time.ticks_ms()
3333
except Exception:
3434
pass

0 commit comments

Comments
 (0)