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

View File

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