1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 11:59:58 +03:00

added proper boost mode

This commit is contained in:
skyfpv 2024-04-23 22:40:39 -06:00
parent fe9561efed
commit 19e8bc498f
3 changed files with 11 additions and 2 deletions

View file

@ -1 +1,2 @@
SPEEDYBEEF405V4
HOBBYWING_XROTORF7CONV

1 SPEEDYBEEF405V4 HOBBYWING_XROTORF7CONV
2

View file

@ -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;

View file

@ -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