You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the hardware is not properly connected or is malfunctioning, the code gets stuck in many infinite loops (notably in SmartMotor#calibrate(). This makes the issue undiscoverable using Serial communication and makes the upload of new firmware problematic (open/close port).
Proposed Solution
For each infinite loops provide a certain termination condition or a timeout. Use the return values to instruct the main loop behavior, which should signal malfunction either on the serial port or via can apposite messages.
The text was updated successfully, but these errors were encountered:
Problem
When the hardware is not properly connected or is malfunctioning, the code gets stuck in many infinite loops (notably in
SmartMotor#calibrate()
. This makes the issue undiscoverable using Serial communication and makes the upload of new firmware problematic (open/close port).Proposed Solution
For each infinite loops provide a certain termination condition or a timeout. Use the return values to instruct the main
loop
behavior, which should signal malfunction either on the serial port or via can apposite messages.The text was updated successfully, but these errors were encountered: