mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Merge pull request #7730 from TonyBlit/fix_resc_off
Fix timed GPS RESCUE OFF message condition
This commit is contained in:
commit
92ed1be027
1 changed files with 3 additions and 3 deletions
|
@ -1096,7 +1096,7 @@ static void osdElementWarnings(osdElementParms_t *element)
|
||||||
gpsRescueIsConfigured() &&
|
gpsRescueIsConfigured() &&
|
||||||
!gpsRescueIsDisabled() &&
|
!gpsRescueIsDisabled() &&
|
||||||
!gpsRescueIsAvailable()) {
|
!gpsRescueIsAvailable()) {
|
||||||
osdFormatMessage(element->buff, OSD_FORMAT_MESSAGE_BUFFER_SIZE, "NO GPS RESC");
|
osdFormatMessage(element->buff, OSD_FORMAT_MESSAGE_BUFFER_SIZE, "RESCUE N/A");
|
||||||
SET_BLINK(OSD_WARNINGS);
|
SET_BLINK(OSD_WARNINGS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1107,8 +1107,8 @@ static void osdElementWarnings(osdElementParms_t *element)
|
||||||
gpsRescueIsDisabled()) {
|
gpsRescueIsDisabled()) {
|
||||||
|
|
||||||
statistic_t *stats = osdGetStats();
|
statistic_t *stats = osdGetStats();
|
||||||
if (!cmpTimeUs(stats->armed_time, OSD_GPS_RESCUE_DISABLED_WARNING_DURATION_US)) {
|
if (cmpTimeUs(stats->armed_time, OSD_GPS_RESCUE_DISABLED_WARNING_DURATION_US) < 0) {
|
||||||
osdFormatMessage(element->buff, OSD_FORMAT_MESSAGE_BUFFER_SIZE, "RESC OFF!!!");
|
osdFormatMessage(element->buff, OSD_FORMAT_MESSAGE_BUFFER_SIZE, "RESCUE OFF");
|
||||||
SET_BLINK(OSD_WARNINGS);
|
SET_BLINK(OSD_WARNINGS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue