mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Ensure OSD display is refreshed when stat screen disabled
This commit is contained in:
parent
2592f406c9
commit
bb4f573615
1 changed files with 1 additions and 6 deletions
|
@ -1029,11 +1029,6 @@ static bool isSomeStatEnabled(void) {
|
||||||
|
|
||||||
static void osdShowStats(void)
|
static void osdShowStats(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!isSomeStatEnabled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t top = 2;
|
uint8_t top = 2;
|
||||||
char buff[10];
|
char buff[10];
|
||||||
|
|
||||||
|
@ -1126,7 +1121,7 @@ STATIC_UNIT_TESTED void osdRefresh(timeUs_t currentTimeUs)
|
||||||
osdResetStats();
|
osdResetStats();
|
||||||
osdShowArmed();
|
osdShowArmed();
|
||||||
resumeRefreshAt = currentTimeUs + (REFRESH_1S / 2);
|
resumeRefreshAt = currentTimeUs + (REFRESH_1S / 2);
|
||||||
} else {
|
} else if (isSomeStatEnabled()) {
|
||||||
osdShowStats();
|
osdShowStats();
|
||||||
resumeRefreshAt = currentTimeUs + (60 * REFRESH_1S);
|
resumeRefreshAt = currentTimeUs + (60 * REFRESH_1S);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue