• Choose the bootloader sequence: custom, then USB-JTAG when the pid matches, otherwise classic.

    Parameters

    • control: SignalControl

      Adapter that sets the lines.

    • target: string

      Chip name.

    • productId: undefined | number

      USB product id from getInfo, when the browser has one.

    • custom: undefined | string

      Sequence that replaces the built-in trains.

    Returns Promise<"bootloader" | "custom" | "invalid">

    Which sequence ran.