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

Made commands.c compatible with Xilinx compiler.

parent d18fdd78
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