Skip to content

Commit

Permalink
Tools: create_OEM_board.py: include line-feeds on include lines
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jun 26, 2024
1 parent 87909b5 commit 72a1b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/scripts/create_OEM_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
subprocess.run(["mkdir", "libraries/AP_HAL_ChibiOS/hwdef/%s" % oem_board_name])
# create files and add reference to originals
f = open("libraries/AP_HAL_ChibiOS/hwdef/%s/hwdef.dat" % oem_board_name, "x")
f.write("include ../%s/hwdef.dat" % board_name)
f.write("include ../%s/hwdef.dat\n" % board_name)
f.close()
f = open("libraries/AP_HAL_ChibiOS/hwdef/%s/hwdef-bl.dat" % oem_board_name, "x")
f.write("include ../%s/hwdef-bl.dat" % board_name)
f.write("include ../%s/hwdef-bl.dat\n" % board_name)
f.close()
if os.path.exists("libraries/AP_HAL_ChibiOS/hwdef/%s/defaults.parm" % board_name):
path = pathlib.Path(f"libraries/AP_HAL_ChibiOS/hwdef/{oem_board_name}/defaults.parm")
Expand Down

0 comments on commit 72a1b97

Please sign in to comment.