Skip to content

Commit f7e4328

Browse files
committed
Tests whether directories contained in.ignore_format.yml are cppcheck(new)
1 parent 6763dd4 commit f7e4328

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

bsp/wch/risc-v/.ignore_format.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# If you need to exclude an entire folder, add the folder path in dir_path;
33
# If you need to exclude a file, add the path to the file in file_path.
44

5-
file_path:
6-
- Libraries/ch56x_drivers/ch56x_gpio.c
7-
85
dir_path:
9-
- Libraries/CH32V10x_StdPeriph_Driver
6+
- Libraries/CH32V10x_StdPeriph_Driver
7+
- Libraries/ch56x_drivers

bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static rt_base_t gpio_pin_get(const char *name)
186186
}
187187
if (pin < 32 && (pin_ports[port].pin_mark & (1 << pin)))
188188
{
189-
return port * 32 + pin;
189+
return port * 32 + pin;
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)