Skip to content

Commit 0afc91c

Browse files
authored
Update build-arduino.sh
1 parent 37eb60b commit 0afc91c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/build-arduino.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ arduino-cli lib install NimBLE-Arduino
4949
# arduino-cli compile -b arduino:esp8266:??? $f
5050
# done
5151

52+
dR = $(pwd)
53+
5254
# Compile all *.ino files for the Arduino Uno
5355
for f in **/*.ino ; do
54-
echo "Project $f"
56+
echo "Project: $f"
57+
d =$(dirname $f)
58+
cd $d
5559
arduino-cli compile -b esp32:esp32:esp32 $f
56-
arduino-cli compile --clean
60+
cd $dR
5761
done

0 commit comments

Comments
 (0)