mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
added proper boost mode
This commit is contained in:
parent
fe9561efed
commit
19e8bc498f
3 changed files with 11 additions and 2 deletions
|
@ -1 +1,2 @@
|
|||
SPEEDYBEEF405V4
|
||||
HOBBYWING_XROTORF7CONV
|
||||
|
||||
|
|
|
|
@ -273,6 +273,7 @@ typedef enum {
|
|||
OSD_WARNING_RSSI_DBM,
|
||||
OSD_WARNING_OVER_CAP,
|
||||
OSD_WARNING_RSNR,
|
||||
OSD_WARNING_BOOST_ENGAGED,
|
||||
OSD_WARNING_COUNT // MUST BE LAST
|
||||
} osdWarningsFlags_e;
|
||||
|
||||
|
|
|
@ -419,12 +419,19 @@ void renderOsdWarning(char *warningText, bool *blinking, uint8_t *displayAttr)
|
|||
|
||||
// Visual beeper
|
||||
if (osdWarnGetState(OSD_WARNING_VISUAL_BEEPER) && osdGetVisualBeeperState()) {
|
||||
tfp_sprintf(warningText, "BOOST ENGAGED");
|
||||
tfp_sprintf(warningText, " * * * *");
|
||||
*displayAttr = DISPLAYPORT_SEVERITY_INFO;
|
||||
osdSetVisualBeeperState(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Boost mode
|
||||
if (IS_RC_MODE_ACTIVE(BOXBOOST)) {
|
||||
tfp_sprintf(warningText, "BOOST ENGAGED");
|
||||
*displayAttr = DISPLAYPORT_SEVERITY_INFO;
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // USE_OSD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue