@@ -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
15891589monitor : 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)
16041604else
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 )
0 commit comments