Changed condition in stlink2_wait_until_transfer_completes()