fix: Move lines=[] above lock in _read_cb() (Issue #683) #684
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-jetson/issue-683-read-cb-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
lines = []was defined inside thewith self._ser_lock:else-branch, but referenced outside the lock in thefor raw in lines:loop_ser is None(port not open), the else-branch never runs,linesis never defined →UnboundLocalErrorlines = []to top of_read_cb(), before acquiring the lockTest plan
Closes #683
🤖 Generated with Claude Code