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:
parent
7936fb07d5
commit
fefedbd686
6 changed files with 101 additions and 67 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue