diff options
author | HampusM <hampus@hampusmat.com> | 2021-12-22 20:01:13 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-12-22 20:01:13 +0100 |
commit | 365ff332362822a2742a5d6653310f6e9eb4f96d (patch) | |
tree | 88c593855c6a2392a533575475971fb4d8069d01 /make-scripts | |
parent | f921311a3793c9bcd332e50b294681bed95a7608 (diff) |
build: add serial monitor logging
Diffstat (limited to 'make-scripts')
-rw-r--r-- | make-scripts/Arduino.mk | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/make-scripts/Arduino.mk b/make-scripts/Arduino.mk index b272332..f25c577 100644 --- a/make-scripts/Arduino.mk +++ b/make-scripts/Arduino.mk @@ -734,16 +734,8 @@ show_submenu: @$(CAT) $(BOARDS_TXT) | grep -E '[a-zA-Z0-9_\-]+.menu.(cpu|chip).[a-zA-Z0-9_\-]+=' | sort -uf | sed 's/.menu.\(cpu\|chip\)./:/' | sed 's/=/:/' | column -s: -t monitor: -ifeq ($(notdir $(MONITOR_CMD)), putty) -ifneq ($(strip $(MONITOR_PARAMS)),) - $(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARAMS) $(call get_monitor_port) -else - $(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port) -endif -else ifeq ($(notdir $(MONITOR_CMD)), picocom) - $(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port) -else ifeq ($(notdir $(MONITOR_CMD)), cu) - $(MONITOR_CMD) -l $(call get_monitor_port) -s $(MONITOR_BAUDRATE) +ifeq ($(LOG_MONITOR),1) + $(MONITOR_CMD) -L -Logfile $(MONITOR_LOG_FILE) $(call get_monitor_port) $(MONITOR_BAUDRATE) else $(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE) endif |