diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2017-09-29 09:59:16 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 09:59:16 +0530 |
| commit | bc5092f25bd330051b377c13b317a25870413a24 (patch) | |
| tree | c6f4e72ab8519e3d44ab95d4d14426bdb7780a9c /Arduino.mk | |
| parent | 9708e8265d02ec4bc89533a06ec74c0aedec03c3 (diff) | |
| parent | c49af21700b413b6efdc3d75193b885896b56dd9 (diff) | |
Merge pull request #529 from szeder/monitor-cmd-with-path
Recognize serial monitors with full path in MONITOR_CMD
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1566,15 +1566,15 @@ 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 ($(MONITOR_CMD), 'putty') +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 ($(MONITOR_CMD), picocom) +else ifeq ($(notdir $(MONITOR_CMD)), picocom) $(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port) -else ifeq ($(MONITOR_CMD), cu) +else ifeq ($(notdir $(MONITOR_CMD)), cu) $(MONITOR_CMD) -l $(call get_monitor_port) -s $(MONITOR_BAUDRATE) else $(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE) |
