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
|
// 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
|
// 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
|
// change this based on available hardware
|
||||||
if (feature(FEATURE_GPS))
|
taskOrder++;
|
||||||
|
if (feature(FEATURE_GPS)) {
|
||||||
gpsThread();
|
gpsThread();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case 4:
|
case 4:
|
||||||
taskOrder++;
|
taskOrder++;
|
||||||
#ifdef SONAR
|
#ifdef SONAR
|
||||||
|
|
Loading…
Reference in New Issue