abort

open suspend override fun abort()(source)

Sends the ABORT opcode to the device, instructing it to discard any in-progress transfer and return to an idle state. Best-effort — never throws.

Call this before close when cancelling or recovering from an error so the device doesn't need a power cycle to accept a fresh DFU session.