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

Merge pull request #5253 from etracer65/crash_flip_osd_warning_fix

Change crash-flip OSD message to track actual state rather than switch
This commit is contained in:
Michael Keller 2018-02-22 23:36:43 +13:00 committed by GitHub
commit 93111cf440
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -57,6 +57,7 @@
#include "drivers/time.h"
#include "fc/config.h"
#include "fc/fc_core.h"
#include "fc/rc_adjustments.h"
#include "fc/rc_controls.h"
#include "fc/runtime_config.h"
@ -655,8 +656,7 @@ static bool osdDrawSingleElement(uint8_t item)
// Warn when in flip over after crash mode
if ((enabledWarnings & OSD_WARNING_CRASH_FLIP)
&& (isModeActivationConditionPresent(BOXFLIPOVERAFTERCRASH))
&& IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
&& (isFlipOverAfterCrashMode())) {
osdFormatMessage(buff, sizeof(buff), "CRASH FLIP");
break;
}

View file

@ -35,6 +35,7 @@ extern "C" {
#include "drivers/serial.h"
#include "fc/config.h"
#include "fc/fc_core.h"
#include "fc/rc_controls.h"
#include "fc/rc_modes.h"
#include "fc/runtime_config.h"
@ -1015,4 +1016,8 @@ extern "C" {
uint16_t getRssi(void) { return rssi; }
uint16_t getCoreTemperatureCelsius(void) { return simulationCoreTemperature; }
bool isFlipOverAfterCrashMode(void) {
return false;
}
}