Commit ec8725c0 authored by Ian McInerney's avatar Ian McInerney

Fixed enter key closing thread when no command entered

parent 443d123f
......@@ -49,7 +49,7 @@ void* UIThread(void *threadID) {
// No command to parse
if ( counter == 0 ) {
break;
continue;
}
uint8_t commandLength = strlen(tempbuf);
......@@ -57,7 +57,7 @@ void* UIThread(void *threadID) {
if ( commandLength < 2) {
// Invalid command
counter = 0;
break;
continue;
}
// Get the quadcopter number
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment