From 79e712aa20b978117cb97b2a12b5d34c0d4897ad Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 11 Aug 2022 17:08:55 +0200 Subject: [PATCH] Feat: add monitoring after a compilation --- esp32_radio/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp32_radio/Makefile b/esp32_radio/Makefile index 8d82ae9..8c47a0f 100644 --- a/esp32_radio/Makefile +++ b/esp32_radio/Makefile @@ -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: