Skip to content

Commit 6f4880c

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 9cdd132 commit 6f4880c

10 files changed

+18
-25
lines changed

tests/validation/gpio/esp32.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/esp32c3.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/esp32c6.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/esp32h2.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/esp32s2.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/esp32s3.diagram.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v221", "h-269.2", "v-57.42" ] ]
2626
],
2727
"dependencies": {}
28-
}
28+
}

tests/validation/gpio/gpio.ino

+8-15
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,29 @@
33

44
#define BTN 0
55

6-
void test_button()
7-
{
6+
void test_button() {
87
Serial.println("Button test");
98
static int count = 0;
109
static int lastState = HIGH;
11-
while(count < 3)
12-
{
10+
while (count < 3) {
1311
int state = digitalRead(BTN);
14-
if (state != lastState)
15-
{
16-
if (state == LOW)
17-
{
12+
if (state != lastState) {
13+
if (state == LOW) {
1814
count++;
1915
Serial.print("Button pressed ");
2016
Serial.print(count);
2117
Serial.println(" times");
22-
}
23-
lastState = state;
18+
}
19+
lastState = state;
2420
}
2521
delay(10);
2622
}
2723
}
2824

29-
void setup()
30-
{
25+
void setup() {
3126
Serial.begin(115200);
3227
pinMode(BTN, INPUT_PULLUP);
3328
test_button();
3429
}
3530

36-
void loop()
37-
{
38-
}
31+
void loop() {}

tests/validation/gpio/scenario.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 1
33
author: Jan Prochazka ([email protected])
44

55
steps:
6-
- wait-serial: 'Button test'
6+
- wait-serial: "Button test"
77

88
# Need for 1s delay for scenario to run properly
99
- delay: 1000ms
@@ -37,4 +37,4 @@ steps:
3737
part-id: btn1
3838
control: pressed
3939
value: 1
40-
- wait-serial: 'Button pressed 3 times'
40+
- wait-serial: "Button pressed 3 times"

tests/validation/wifi/test_wifi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
def test_wifi(dut):
22
dut.expect_exact("WiFi connected")
3-
dut.expect_exact("IP address:")
3+
dut.expect_exact("IP address:")

tests/validation/wifi/wifi.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ void setup() {
121121

122122
void loop() {
123123
delay(1000);
124-
}
124+
}

0 commit comments

Comments
 (0)