clunky solution to mast serial errors: reset error flag on every motor function call