summaryrefslogtreecommitdiff
path: root/make-scripts/Arduino.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make-scripts/Arduino.mk')
-rw-r--r--make-scripts/Arduino.mk12
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