aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
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);