1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

attempts to improve relax

attempts to improve relax fix

attempts to improve relax fix

bug fixes

spaces

changed settings and added isAirmodeActive()

fix rebase error
This commit is contained in:
Thorsten Laux 2018-06-05 13:33:20 +02:00 committed by Michael Keller
parent 7936fb07d5
commit fefedbd686
6 changed files with 101 additions and 67 deletions

View file

@ -537,6 +537,14 @@ uint8_t calculateThrottlePercent(void)
return ret;
}
static bool airmodeIsActivated;
bool isAirmodeActivated()
{
return airmodeIsActivated;
}
/*
* processRx called from taskUpdateRxMain
@ -544,7 +552,6 @@ uint8_t calculateThrottlePercent(void)
bool processRx(timeUs_t currentTimeUs)
{
static bool armedBeeperOn = false;
static bool airmodeIsActivated;
static bool sharedPortTelemetryEnabled = false;
if (!calculateRxChannelsAndUpdateFailsafe(currentTimeUs)) {