New compile option FLIGHT_PHASES added. Enabled by default of course.

This commit is contained in:
bsongis
2012-04-14 18:30:18 +00:00
parent 6bc2ddc3d4
commit d5b386d5db
8 changed files with 117 additions and 28 deletions
+2
View File
@@ -566,6 +566,7 @@ bool getSwitch(int8_t swtch, bool nc)
return __getSwitch(swtch);
}
#ifdef FLIGHT_PHASES
uint8_t getFlightPhase()
{
for (uint8_t i=1; i<MAX_PHASES; i++) {
@@ -576,6 +577,7 @@ uint8_t getFlightPhase()
}
return 0;
}
#endif
int16_t getRawTrimValue(uint8_t phase, uint8_t idx)
{