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

Merge branch 'master' into controller-network

parents f2c1fc44 ceb4b923
No related branches found
No related tags found
1 merge request!8Controller network
...@@ -169,10 +169,11 @@ struct MessageType MessageTypes[MAX_TYPE_ID] = ...@@ -169,10 +169,11 @@ struct MessageType MessageTypes[MAX_TYPE_ID] =
int findCommand(char * str) 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) { if (strcmp(str, MessageTypes[i].cmdText) == 0) {
return i; return i;
} }
} }
return -1; 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