Skip to content

Commit

Permalink
Fix arduino-cli option
Browse files Browse the repository at this point in the history
  • Loading branch information
matsujirushi committed May 19, 2021
1 parent d2264c0 commit ecf8d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arduino-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FLAGS+=""
if [ "$COMMAND" = "--build" ];
then
echo "Building $PROJECT"
arduino-cli compile --fqbn $BOARD --verbose --build-properties build.extra_flags="$INCLUDE $FLAGS" $PROJECT &
arduino-cli compile --fqbn $BOARD --verbose --build-property build.extra_flags="$INCLUDE $FLAGS" $PROJECT &
pid=$! # Process Id of the previous running command
while kill -0 $pid 2>/dev/null
do
Expand All @@ -52,7 +52,7 @@ then
arduino-cli upload --fqbn $BOARD -p $PORT
elif [ "$COMMAND" = "--all" ];
then
arduino-cli compile --fqbn $BOARD --verbose --build-properties build.extra_flags="$INCLUDE $FLAGS" $PROJECT
arduino-cli compile --fqbn $BOARD --verbose --build-property build.extra_flags="$INCLUDE $FLAGS" $PROJECT
status=$?
[ $status -eq 0 ] && arduino-cli upload --fqbn $BOARD --port $PORT
else
Expand Down

0 comments on commit ecf8d27

Please sign in to comment.