Misc. auto updates from kicad gui.
Fix a couple bugs in the sync-up algorithm
Fully empty any pending error bytes from the cube, for better sync-up.