Skip to content

Commit

Permalink
examples/telnet_server: enable alternative stdio method
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 9, 2024
1 parent bd87910 commit 17f8f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/telnet_server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ USEMODULE += ps
# Include the telnet server
USEMODULE += stdio_telnet

# select a 2nd stdio method
ifeq (,$(filter native%,$(BOARD)))
USEMODULE += stdio_uart
else
USEMODULE += stdio_native
endif

# Enable faster re-connects
CFLAGS += -DCONFIG_GNRC_TCP_EXPERIMENTAL_DYN_MSL_EN=1

Expand Down
1 change: 0 additions & 1 deletion examples/telnet_server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ int main(void)

/* start shell */
printf("All up, awaiting connection on port %u\n", CONFIG_TELNET_PORT);
puts("Local shell disabled");
char line_buf[SHELL_DEFAULT_BUFSIZE];
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);

Expand Down

0 comments on commit 17f8f9c

Please sign in to comment.