fixed bug in task state machine introduced by re-adding gps thread. thanks to alu for catching it.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@441 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-10-14 22:42:32 +00:00
parent ca7d7e32f6
commit c1d82bcf46
1 changed files with 4 additions and 2 deletions

View File

@ -781,9 +781,11 @@ void loop(void)
// if GPS feature is enabled, gpsThread() will be called at some intervals to check for stuck
// hardware, wrong baud rates, init GPS if needed, etc. Don't use SENSOR_GPS here as gpsThread() can and will
// change this based on available hardware
if (feature(FEATURE_GPS))
taskOrder++;
if (feature(FEATURE_GPS)) {
gpsThread();
break;
break;
}
case 4:
taskOrder++;
#ifdef SONAR