Revert default MONITOR_CMD to screen

Add support for tail as `MONITOR_CMD`.
This commit is contained in:
Doron Behar 2018-10-09 19:26:23 +03:00
parent 1e766cf1ac
commit e76be67d6e

View file

@ -959,7 +959,7 @@ ifeq ($(strip $(NO_CORE)),)
$(call show_config_variable,MONITOR_BAUDRATE, [USER]) $(call show_config_variable,MONITOR_BAUDRATE, [USER])
endif endif
ifndef MONITOR_CMD ifndef MONITOR_CMD
MONITOR_CMD = "less +F" MONITOR_CMD = "screen"
endif endif
endif endif
@ -1763,6 +1763,8 @@ else ifeq ($(notdir $(MONITOR_CMD)), picocom)
else ifeq ($(notdir $(MONITOR_CMD)), cu) else ifeq ($(notdir $(MONITOR_CMD)), cu)
$(MONITOR_CMD) -l $(call get_monitor_port) -s $(MONITOR_BAUDRATE) $(MONITOR_CMD) -l $(call get_monitor_port) -s $(MONITOR_BAUDRATE)
else ifeq ($(MONITOR_CMD), less) else ifeq ($(MONITOR_CMD), less)
$(MONITOR_CMD) +F $(call get_monitor_port)
else ifeq ($(MONITOR_CMD), tail)
$(MONITOR_CMD) -f $(call get_monitor_port) $(MONITOR_CMD) -f $(call get_monitor_port)
else ifeq ($(MONITOR_CMD), cat) else ifeq ($(MONITOR_CMD), cat)
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_CMD) $(call get_monitor_port)