Skip to content

Commit e3553be

Browse files
committed
Merge branch 'master' into add-target-stty_params
* master: Recognize serial monitors with full path in MONITOR_CMD
2 parents a7dec46 + bc5092f commit e3553be

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Arduino.mk

+6-6
Original file line numberDiff line numberDiff line change
@@ -1587,19 +1587,19 @@ show_submenu:
15871587
@$(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
15881588

15891589
monitor: stty_params
1590-
ifeq ($(MONITOR_CMD), 'putty')
1590+
ifeq ($(notdir $(MONITOR_CMD)), putty)
15911591
ifneq ($(strip $(MONITOR_PARAMS)),)
15921592
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE),$(MONITOR_PARAMS) $(call get_monitor_port)
15931593
else
15941594
$(MONITOR_CMD) -serial -sercfg $(MONITOR_BAUDRATE) $(call get_monitor_port)
15951595
endif
1596-
else ifeq ($(MONITOR_CMD), picocom)
1596+
else ifeq ($(notdir $(MONITOR_CMD)), picocom)
15971597
$(MONITOR_CMD) -b $(MONITOR_BAUDRATE) $(MONITOR_PARAMS) $(call get_monitor_port)
1598-
else ifeq ($(MONITOR_CMD), cu)
1598+
else ifeq ($(notdir $(MONITOR_CMD)), cu)
15991599
$(MONITOR_CMD) -l $(call get_monitor_port) -s $(MONITOR_BAUDRATE)
1600-
else ifeq ($(MONITOR_CMD), less)
1600+
else ifeq ($(notdir $(MONITOR_CMD)), less)
16011601
$(MONITOR_CMD) -f $(call get_monitor_port)
1602-
else ifeq ($(MONITOR_CMD), cat)
1602+
else ifeq ($(notdir $(MONITOR_CMD)), cat)
16031603
$(MONITOR_CMD) $(call get_monitor_port)
16041604
else
16051605
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
@@ -1680,7 +1680,7 @@ help:
16801680

16811681
.PHONY: all upload raw_upload raw_eeprom error_on_caterina reset reset_stty ispload \
16821682
clean depends size show_boards monitor disasm symbol_sizes generated_assembly \
1683-
generate_assembly verify_size burn_bootloader help pre-build
1683+
generate_assembly verify_size burn_bootloader help pre-build stty_params
16841684

16851685
# added - in the beginning, so that we don't get an error if the file is not present
16861686
-include $(DEPS)

HISTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
77
### In Development
88
- Fix: Add -fno-devirtualize flag to workaround g++ segfault bug (issue #486). (https://github.com/sej7278)
99
- Fix: Quote the prefix tag in the space_pad_to function
10+
- Fix: recognize serial monitors with full path in MONITOR_CMD
1011
- Tweak: Set ARDMK_VERSION to 1.6 (https://github.com/sej7278)
1112
- Tweak: Move non-standard-related items from CxxFLAGS_STD to CxxFLAGS (issue #523) (https://github.com/sej7278)
1213
- Tweak: Update Windows usage documentation and allow non-relative paths (issue #519) (https://github.com/tuna-f1sh)

0 commit comments

Comments
 (0)