From ceb4b923ec139f0dc204498180b2caf597225aa1 Mon Sep 17 00:00:00 2001 From: "ucart@co3050-12" <dawehr@iastate.edu> Date: Sat, 11 Feb 2017 20:30:10 -0600 Subject: [PATCH] Made commands.c compatible with Xilinx compiler. --- groundStation/src/backend/commands.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groundStation/src/backend/commands.c b/groundStation/src/backend/commands.c index 18025ee34..4bba28735 100644 --- a/groundStation/src/backend/commands.c +++ b/groundStation/src/backend/commands.c @@ -169,10 +169,11 @@ struct MessageType MessageTypes[MAX_TYPE_ID] = int findCommand(char * str) { - for (int i = 0; i < MAX_TYPE_ID; i++) { + int i; + for (i = 0; i < MAX_TYPE_ID; i++) { if (strcmp(str, MessageTypes[i].cmdText) == 0) { return i; } } return -1; -} \ No newline at end of file +} -- GitLab