mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +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);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ typedef struct {
|
|||
void posHoldInit(void);
|
||||
void updatePosHold(timeUs_t currentTimeUs);
|
||||
|
||||
bool showPosHoldWarning(void);
|
||||
bool posHoldFailure(void);
|
||||
bool allowPosHoldWithoutMag(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -250,7 +250,7 @@ void renderOsdWarning(char *warningText, bool *blinking, uint8_t *displayAttr)
|
|||
#endif // USE_GPS_RESCUE
|
||||
|
||||
#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");
|
||||
*displayAttr = DISPLAYPORT_SEVERITY_WARNING;
|
||||
*blinking = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue