Skip to content

Commit ec5d4cc

Browse files
committed
[genpinmap] Sort generated files per folder series
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 3cf9602 commit ec5d4cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/genpinmap/genpinmap_arduino.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,12 @@ def parse_pins():
10071007
"Generating %s and %s for '%s'..." % (out_c_filename, out_h_filename, mcu_file)
10081008
)
10091009
input_file_name = os.path.join(cubemxdir, mcu_file)
1010-
out_path = os.path.join(cur_dir, "Arduino", os.path.splitext(mcu_file)[0])
1010+
out_path = os.path.join(
1011+
cur_dir,
1012+
"Arduino",
1013+
os.path.splitext(mcu_file)[0][:7],
1014+
os.path.splitext(mcu_file)[0],
1015+
)
10111016
output_c_filename = os.path.join(out_path, out_c_filename)
10121017
output_h_filename = os.path.join(out_path, out_h_filename)
10131018
if not (os.path.isdir(out_path)):

0 commit comments

Comments
 (0)