mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
OSD: combined ON/ARM timer
This commit is contained in:
parent
9ad2cc8445
commit
24bf8050c1
3 changed files with 8 additions and 2 deletions
|
@ -296,6 +296,8 @@ static char osdGetTimerSymbol(osd_timer_source_e src)
|
|||
case OSD_TIMER_SRC_TOTAL_ARMED:
|
||||
case OSD_TIMER_SRC_LAST_ARMED:
|
||||
return SYM_FLY_M;
|
||||
case OSD_TIMER_SRC_ON_OR_ARMED:
|
||||
return ARMING_FLAG(ARMED) ? SYM_FLY_M : SYM_ON_M;
|
||||
default:
|
||||
return ' ';
|
||||
}
|
||||
|
@ -312,6 +314,8 @@ static timeUs_t osdGetTimerValue(osd_timer_source_e src)
|
|||
statistic_t *stats = osdGetStats();
|
||||
return stats->armed_time;
|
||||
}
|
||||
case OSD_TIMER_SRC_ON_OR_ARMED:
|
||||
return ARMING_FLAG(ARMED) ? osdFlyTime : micros();
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue