diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2023-06-29 15:17:33 +0200 |
---|---|---|
committer | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2023-08-04 13:33:03 +0200 |
commit | ad33cc2a47b9e956227c1b45506acb5dd2acc31b (patch) | |
tree | 9b725c686512ede1148fd26a6eb3dd359d86c6bd /usb-control/command_processor.py | |
parent | c9b06d07394756da4edd8d05b16e87d78d4e3bf6 (diff) |
usb-control: fix flake8 302 expected 2 blank lines, found 1
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Diffstat (limited to 'usb-control/command_processor.py')
-rw-r--r-- | usb-control/command_processor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-control/command_processor.py b/usb-control/command_processor.py index 6d534c6..945c337 100644 --- a/usb-control/command_processor.py +++ b/usb-control/command_processor.py @@ -8,14 +8,17 @@ __license__ = 'MIT' import sys import cp210x_controller + def do_delay(dev): time.sleep(0.3) + def do_list(devs): print("Found %d board%s:" % (len(devs), "s"[len(devs) == 1:])) for idx, dev in enumerate(devs): print("%d: %s %s" % (idx, dev.serial_number, dev.product)) + class CommandProcessor: def __init__(self, product_string, options_dict, command_dict): self.product_string = product_string |