Revert "removed serial.flush"

This reverts commit c1e0c4ccafe15dcd52099c4f322f85e883944792.
Revert "more changes to myreset()"

This reverts commit 08fc75f789fc2916afef3b76295f0d54af013b46.