Skip to content

Commit

Permalink
[Pipe] Fix Arduino_serialcom compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Aug 5, 2022
1 parent c96fdfd commit d5f2ee7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 61 deletions.
59 changes: 0 additions & 59 deletions examples/projects/Arduino/gate_serialcom/boards/zero.json

This file was deleted.

2 changes: 1 addition & 1 deletion source_filter_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# private library flags
find_HAL = False
for item in env.get("CPPDEFINES", []):
if isinstance(item, tuple) and item[0] == "LUOSHAL":
if (isinstance(item, tuple) and item[0] == "LUOSHAL") and (find_HAL == False):
find_HAL = True
if (path.exists("network/robus/HAL/" + item[1]) and path.exists("engine/HAL/" + item[1])):
if not visited_key in global_env:
Expand Down
2 changes: 1 addition & 1 deletion tool_services/pipe/select_hal_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
find_HAL = True
env.Append(CPPPATH=[realpath(item[1] + "/" + itemhal[1])])
env.Replace(
SRC_FILTER=["+<*.c>, +<%s/%s/*.c>" % (item[1], itemhal[1])])
SRC_FILTER=["+<*.c>, +<%s/%s/*.c>, +<%s/%s/*.cpp>" % (item[1], itemhal[1], item[1], itemhal[1])])
if (path.exists(item[1] + "/" + itemhal[1])):
click.secho(
"\t* %s HAL selected." % itemhal[1], fg="green")
Expand Down

0 comments on commit d5f2ee7

Please sign in to comment.