fix reset sequence

This needs further improvements. The remote waits loops for 2^16 cycles
within the bootloader, waiting for the "enter loader" command. At the
moment we need to hit this window.
Instead of trying only once, we should loop until the loader sends us an
ack.