Skip to content

Commit

Permalink
Minor cosmetic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makuke1234 committed Apr 13, 2022
1 parent fad3f0d commit bca78bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ static inline void keyboardHandler(udp_t * restrict udp, char * restrict buffer,
{
// Send data
sendBuf[len] = '\0';
putchar('\n');
if (strncmp(sendBuf, "exit", 4) == 0)
{
breakFlag = true;
break;
}
// Send message
udp_write(udp, sendBuf, len + 1);
printf("\nData sent.\n");
printf("Data sent.\n");

len = 0;
idx = 0;
Expand Down

0 comments on commit bca78bf

Please sign in to comment.