Feat: add monitoring after a compilation

This commit is contained in:
Bertrand Benjamin 2022-08-11 17:08:55 +02:00
parent 785d4938f5
commit 79e712aa20
1 changed files with 2 additions and 1 deletions

View File

@ -127,11 +127,12 @@ $(ELF): $(SRC) $(HDRS)
echo "---> please install arduino-manifest, see https://github.com/digiampietro/arduino-manifest"; \
fi
upload:
upload: compile
@if [ ! -c $(SERIAL_DEV) ] ; \
then echo "---> ERROR: Serial Device not available, please set the SERIAL_DEV environment variable" ; \
else echo "---> Uploading sketch\n"; \
arduino-cli upload -b $(FQBN) -p $(SERIAL_DEV) $(VFLAG); \
screen $(SERIAL_DEV) 115200;\
fi
ota: