Added return in doflash function when could not auto-reset or detect a manual reset on Leonardo.
Corrected control for port that will be used in order to flash on Leonardo board.