UnboundLocalError when _ser is None — lines was only assigned inside the else branch. Move initialisation to function scope so the for-loop outside the lock always has a valid list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
SaltyLab self-balancing bot firmware (STM32F722)
Languages
Python
67.1%
C
11.4%
JavaScript
9.2%
OpenSCAD
7.8%
HTML
1.5%
Other
2.9%