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:
parent
ca7d7e32f6
commit
c1d82bcf46
6
src/mw.c
6
src/mw.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue