From cb3f0c086cfda0ba8dad36a6b9b72e41b676c498 Mon Sep 17 00:00:00 2001 From: IFX-Anusha Date: Tue, 26 Mar 2024 11:37:16 +0530 Subject: [PATCH] tests/psoc6: Fix Ruff. Signed-off-by: IFX-Anusha --- tests/psoc6/test_inputs/main.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/psoc6/test_inputs/main.py b/tests/psoc6/test_inputs/main.py index 788922d7ae503..7c320b62a3d4f 100755 --- a/tests/psoc6/test_inputs/main.py +++ b/tests/psoc6/test_inputs/main.py @@ -8,20 +8,18 @@ # Allocate pin based on board machine = os.uname().machine if "CY8CPROTO-062-4343W" in machine: - gpio_pin = 'P12_1' - input_pin = 'P13_6' + gpio_pin = "P12_1" + input_pin = "P13_6" elif "CY8CPROTO-063-BLE" in machine: - gpio_pin = 'P5_2' - input_pin = 'P12_7' + gpio_pin = "P5_2" + input_pin = "P12_7" print("bitstream execution") timing = [3000000, 1000000, 8000000, 5000000] buf = bytearray([0xF0]) p0 = Pin(gpio_pin, Pin.OUT, value=0) input_pin = Pin(input_pin, Pin.IN) -while(input_pin.value()==1): +while input_pin.value() == 1: pass for i in range(2): bitstream(p0, 0, timing, buf) - -