aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-09-15 01:20:36 -0400
committersotech117 <michael_foiani@brown.edu>2023-09-15 01:20:36 -0400
commit97b4913de92b150ca18690df1b41e62c856aab05 (patch)
tree24fd472d45615c7aae9370dc0abe6f66baea24d8 /client.c
parentcbfafaabbd846e625796f275b2e843376385cc36 (diff)
cleanup the hello and welcome interactoin
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
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);