the '\r' character prevents the program from working. removing it.

This commit is contained in:
Charles Descamps 2025-02-05 18:50:39 -07:00
parent e1eefb9fd4
commit 0876124fc5

View file

@ -46,7 +46,7 @@ int main(int argc, char **argv)
message[receivedDataLen] = '\0';
printf("Message rec: %s", message);
// if "time\r\n" is received, then send() back the linux epoch.
if(strcmp(message, "time\r\n") == 0)
if(strcmp(message, "time\n") == 0)
{
//
char reply[BUFFER_SIZE];