mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
rename showPosHoldWarning to posHoldFailure
This commit is contained in:
parent
c39b6ab06e
commit
4c9fa613ff
3 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ void posHoldUpdate(timeUs_t currentTimeUs) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool showPosHoldWarning(void) {
|
bool posHoldFailure(void) {
|
||||||
return (posHold.isPosHoldRequested && !posHold.posHoldIsOK);
|
return (posHold.isPosHoldRequested && !posHold.posHoldIsOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ typedef struct {
|
||||||
void posHoldInit(void);
|
void posHoldInit(void);
|
||||||
void updatePosHold(timeUs_t currentTimeUs);
|
void updatePosHold(timeUs_t currentTimeUs);
|
||||||
|
|
||||||
bool showPosHoldWarning(void);
|
bool posHoldFailure(void);
|
||||||
bool allowPosHoldWithoutMag(void);
|
bool allowPosHoldWithoutMag(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -250,7 +250,7 @@ void renderOsdWarning(char *warningText, bool *blinking, uint8_t *displayAttr)
|
||||||
#endif // USE_GPS_RESCUE
|
#endif // USE_GPS_RESCUE
|
||||||
|
|
||||||
#ifdef USE_POS_HOLD_MODE
|
#ifdef USE_POS_HOLD_MODE
|
||||||
if (osdWarnGetState(OSD_WARNING_POSHOLD_FAILED) && showPosHoldWarning()) {
|
if (osdWarnGetState(OSD_WARNING_POSHOLD_FAILED) && posHoldFailure()) {
|
||||||
tfp_sprintf(warningText, "POS HOLD FAIL");
|
tfp_sprintf(warningText, "POS HOLD FAIL");
|
||||||
*displayAttr = DISPLAYPORT_SEVERITY_WARNING;
|
*displayAttr = DISPLAYPORT_SEVERITY_WARNING;
|
||||||
*blinking = true;
|
*blinking = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue