D | dfu.py | 3 # SPDX-License-Identifier: Apache-2.0 5 '''Runner for flashing with dfu-util.''' 17 '''Runner front-end for dfu-util.''' 19 def __init__(self, cfg, dev_id, alt, img, exe='dfu-util', argument 24 self.alt = alt 26 self.cmd = [exe, f'-d,{dev_id}'] 28 self.list_pattern = f', alt={int(self.alt)},' 30 self.list_pattern = f', name="{self.alt}",' 41 return 'dfu-util' 48 def dev_id_help(cls) -> str: [all …]
|