Skip to content

Commit 940ecfb

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 1e6ff84 commit 940ecfb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

libraries/ESP32/examples/RMT/RMTLoopback/RMTLoopback.ino

+5-7
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ void setup() {
5757

5858
// create multiple pulses with different width to be sent
5959
for (int i = 0; i < 255; i++) {
60-
data[i].level0 = 1; // HIGH
61-
data[i].duration0 = 1 + 13 - (i % 13); // number of Tick on High
62-
data[i].level1 = 0; // LOW
63-
data[i].duration1 = 1 + (i % 13); // number of Ticks on Low
60+
data[i].level0 = 1; // HIGH
61+
data[i].duration0 = 1 + 13 - (i % 13); // number of Tick on High
62+
data[i].level1 = 0; // LOW
63+
data[i].duration1 = 1 + (i % 13); // number of Ticks on Low
6464
my_data[i].val = 0;
6565
}
6666
data[255].val = 0;
@@ -69,9 +69,7 @@ void setup() {
6969
Serial.println("Preloaded Data that will sent (time in 0.1us):");
7070
// Printout the received data plus the original values
7171
for (int i = 0; i < RMT_NUM_EXCHANGED_DATA; i++) {
72-
Serial.printf("%08lx=[%c 0x%02x|%c 0x%02x] ", data[i].val,
73-
data[i].level0 ? 'H' : 'L', data[i].duration0,
74-
data[i].level1 ? 'H' : 'L', data[i].duration1);
72+
Serial.printf("%08lx=[%c 0x%02x|%c 0x%02x] ", data[i].val, data[i].level0 ? 'H' : 'L', data[i].duration0, data[i].level1 ? 'H' : 'L', data[i].duration1);
7573

7674
if (!((i + 1) % 4)) {
7775
Serial.println();

0 commit comments

Comments
 (0)