mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Merge pull request #6952 from mikeller/improve_airmode_detection
Improved handling of airmode detection.
This commit is contained in:
commit
f912b891b5
9 changed files with 22 additions and 16 deletions
|
@ -976,7 +976,7 @@ extern "C" {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool isAirmodeActive() {
|
||||
bool airmodeIsEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ extern "C" {
|
|||
|
||||
bool featureIsEnabled(uint32_t) {return false;}
|
||||
|
||||
bool isAirmodeActive(void) {return true;}
|
||||
bool airmodeIsEnabled(void) {return true;}
|
||||
|
||||
mspResult_e mspFcProcessCommand(mspPacket_t *cmd, mspPacket_t *reply, mspPostProcessFnPtr *mspPostProcessFn) {
|
||||
|
||||
|
|
|
@ -312,7 +312,7 @@ bool telemetryCheckRxPortShared(const serialPortConfig_t *) {return true;}
|
|||
|
||||
portSharing_e determinePortSharing(const serialPortConfig_t *, serialPortFunction_e) {return PORTSHARING_NOT_SHARED;}
|
||||
|
||||
bool isAirmodeActive(void) {return airMode;}
|
||||
bool airmodeIsEnabled(void) {return airMode;}
|
||||
|
||||
int32_t getAmperage(void) {
|
||||
return testAmperage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue