This pull request fixes an UnboundLocalError exception being thrown when the board fails to initialize and adds a retry logic to the initial board initialization (controlled by --retry-count).
As a result, the script will no longer exit if it encounters and error during the first initialization.
I have also tried to clean up some of the code in main.py to hopefully make it more readable.
This pull request fixes an UnboundLocalError exception being thrown when the board fails to initialize and adds a retry logic to the initial board initialization (controlled by --retry-count). As a result, the script will no longer exit if it encounters and error during the first initialization.
I have also tried to clean up some of the code in
main.py
to hopefully make it more readable.