Skip to content
Snippets Groups Projects
Commit ceb4b923 authored by dawehr's avatar dawehr
Browse files

Made commands.c compatible with Xilinx compiler.

parent 69bc0039
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment