1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1760 fix compile issue for CC

This commit is contained in:
abeck70 2015-04-20 20:09:27 +10:00
parent d943f5a0ce
commit f68e1144ca

View File

@ -35,7 +35,9 @@
#include <flightstatus.h>
#include <flightmodesettings.h>
#include <stabilizationdesired.h>
#ifndef PIOS_EXCLUDE_ADVANCED_FEATURES
#include <statusvtolland.h>
#endif
// Private constants
#define ARMED_THRESHOLD 0.50f
@ -341,6 +343,7 @@ static bool forcedDisArm(void)
return true;
}
#ifndef PIOS_EXCLUDE_ADVANCED_FEATURES
// check landing state if active
FlightStatusData flightStatus;
FlightStatusGet(&flightStatus);
@ -351,7 +354,7 @@ static bool forcedDisArm(void)
return true;
}
}
#endif
return false;
}