Skip to content

Commit

Permalink
examples/telnet_server: fix build with shell_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco authored and HendrikVE committed Jun 7, 2022
1 parent 7f6bc03 commit 4470b68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/telnet_server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ void telnet_cb_pre_connected(sock_tcp_t *sock)
printf("%s connected\n", addr_str);
}

/* shell lock module makes use of disconnect callback */
#ifndef MODULE_SHELL_LOCK
void telnet_cb_disconneced(void)
{
puts("disconnected");
}
#endif

void telnet_cb_connected(sock_tcp_t *sock)
{
Expand Down

0 comments on commit 4470b68

Please sign in to comment.