Fix the "auto reset" issue on Mega 2560 and Uno