diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2023-06-29 15:23:58 +0200 |
---|---|---|
committer | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2023-08-04 13:33:29 +0200 |
commit | 5437d7491253d7f273da2ba76ca029ae2b78926d (patch) | |
tree | 4a9b957eed076dc87acf276c5cc1a3201ab5d29f | |
parent | 403a1bbc64e432851f6a485f657e31e12ab6e0cd (diff) |
usb-control: fix flake8 E128 continuation line under-indented for visual indent
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r-- | usb-control/command_processor.py | 4 | ||||
-rw-r--r-- | usb-control/cp2102_haikou.py | 18 | ||||
-rw-r--r-- | usb-control/cp2102_simple.py | 22 | ||||
-rw-r--r-- | usb-control/cp210x_controller.py | 4 |
4 files changed, 24 insertions, 24 deletions
diff --git a/usb-control/command_processor.py b/usb-control/command_processor.py index f68fd9b..34f66a0 100644 --- a/usb-control/command_processor.py +++ b/usb-control/command_processor.py @@ -25,9 +25,9 @@ class CommandProcessor: self.options_dict = options_dict self.command_dict = { 'delay': (do_delay, - 'delays execution for 300 ms'), + 'delays execution for 300 ms'), 'list': (do_list, - 'lists serial numbers of attached boards'), + 'lists serial numbers of attached boards'), } self.command_dict.update(command_dict) diff --git a/usb-control/cp2102_haikou.py b/usb-control/cp2102_haikou.py index b596a8f..41cc76c 100644 --- a/usb-control/cp2102_haikou.py +++ b/usb-control/cp2102_haikou.py @@ -128,23 +128,23 @@ def do_cycle_to_maskrom(dev): def main(product_string): command_dict = { 'status': (do_status, - 'show status of attached Haikou Baseboards'), + 'show status of attached Haikou Baseboards'), 'normalboot': (do_normalboot, - 'set bootmode to normal boot'), + 'set bootmode to normal boot'), 'biosdisable': (do_biosdisable, - 'set bootmode to BIOS disabled'), + 'set bootmode to BIOS disabled'), 'powerbutton': (do_powerbutton, - 'emulate power button press'), + 'emulate power button press'), 'on': (do_on, - 'turn on attached Haikou Baseboards'), + 'turn on attached Haikou Baseboards'), 'off': (do_off, - 'turn off attached Haikou Baseboards'), + 'turn off attached Haikou Baseboards'), 'cycle': (do_cycle, - 'power cycle attached Haikou Baseboards'), + 'power cycle attached Haikou Baseboards'), 'cycle-to-normal': (do_cycle_to_normal, - 'power cycle with normal boot'), + 'power cycle with normal boot'), 'cycle-to-maskrom': (do_cycle_to_maskrom, - 'power cycle with BIOS disabled') + 'power cycle with BIOS disabled') } # Create argparser object diff --git a/usb-control/cp2102_simple.py b/usb-control/cp2102_simple.py index 32476d7..d2259f4 100644 --- a/usb-control/cp2102_simple.py +++ b/usb-control/cp2102_simple.py @@ -88,33 +88,33 @@ def do_reset_to_maskrom(dev): def main(product_string): options_dict = { '--invert-reset': (invert_reset, - 'invert voltage level of reset line'), + 'invert voltage level of reset line'), '--invert-maskrom': (invert_maskrom, - 'invert voltage level of maskrom line') + 'invert voltage level of maskrom line') } command_dict = { 'status': (do_status, - 'show status of attached board'), + 'show status of attached board'), 'reset-assert': (do_reset_assert, - 'assert the reset line'), + 'assert the reset line'), 'reset-deassert': (do_reset_deassert, - 'deassert the reset line'), + 'deassert the reset line'), 'reset': (do_reset, - 'assert the reset line for 300 ms'), + 'assert the reset line for 300 ms'), 'normalboot': (do_normalboot, - 'set bootmode to normal boot'), + 'set bootmode to normal boot'), 'maskrom': (do_maskrom, - 'set bootmode to maskrom'), + 'set bootmode to maskrom'), 'reset-to-normal': (do_reset_to_normal, - 'reset with normal boot target'), + 'reset with normal boot target'), 'reset-to-maskrom': (do_reset_to_maskrom, - 'reset to maskrom') + 'reset to maskrom') } # Create argparser object cp = command_processor.CommandProcessor(product_string, options_dict, - command_dict) + command_dict) # Valiate command line arguments and commands cp.validate_commandline(sys.argv[1:]) diff --git a/usb-control/cp210x_controller.py b/usb-control/cp210x_controller.py index b57b836..296a130 100644 --- a/usb-control/cp210x_controller.py +++ b/usb-control/cp210x_controller.py @@ -77,5 +77,5 @@ def find_board_list(product_string, serialnumber): except ValueError as e: if 'langid' in e.message: raise usb.core.USBError(e.message + "\n" + - "This may be a permission issue. See: \n" + - "https://github.com/pyusb/pyusb/issues/139") + "This may be a permission issue. See: \n" + + "https://github.com/pyusb/pyusb/issues/139") |