1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #11606 from leandrolanzieri/pr/tests/shell_stdio_rtt_fix

tests/shell: Initialize xtimer when stdio_rtt is used
This commit is contained in:
Peter Kietzmann 2019-05-29 17:41:49 +02:00 committed by GitHub
commit 3e33c11c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,10 @@
#include "shell_commands.h"
#include "shell.h"
#if MODULE_STDIO_RTT
#include "xtimer.h"
#endif
static int print_teststart(int argc, char **argv)
{
(void) argc;
@ -64,6 +68,9 @@ int main(void)
printf("test_shell.\n");
#if MODULE_STDIO_RTT
xtimer_init();
#endif
/* define buffer to be used by the shell */
char line_buf[SHELL_DEFAULT_BUFSIZE];