Skip to content

Commit

Permalink
Fix the test utility again
Browse files Browse the repository at this point in the history
  • Loading branch information
k1-801 committed Jun 30, 2024
1 parent 857295b commit d80a9cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hidtest/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,12 @@ void interactive_loop(void)
printf(" Q: Quit\n");
printf("Please enter command:");

/* Printed data might not show on the screen when the command is done - force it out */
fflush(stdout);

command = toupper(waitkey());

printf("%c\n\n========================================\n\n", command);
fflush(stdout);

// GET COMMAND
switch (command) {
Expand All @@ -518,7 +520,7 @@ void interactive_loop(void)
fflush(stdout);

printf("\n\n========================================\n\n");
} while(command != 'q');
} while(command != 'Q');
}

//
Expand Down

0 comments on commit d80a9cf

Please sign in to comment.