From 97b4913de92b150ca18690df1b41e62c856aab05 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Fri, 15 Sep 2023 01:20:36 -0400 Subject: cleanup the hello and welcome interactoin --- client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.c') diff --git a/client.c b/client.c index 49d2cdf..cb524cf 100644 --- a/client.c +++ b/client.c @@ -113,12 +113,14 @@ int main(int argc, char *argv[]) if (line == NULL) { continue; } else if (strncmp("q\n", input, LINE_MAX) == 0) { + // end code if type in q printf("Exiting.\n"); break; } else { // convert input to an int int inputInt = (uint16_t)atoi(input); - + + // send the command to change the station struct SetStation setStation; setStation.commandType = 1; setStation.stationNumber = htons(inputInt); -- cgit v1.2.3-70-g09d2