1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Ensure OSD display is refreshed when stat screen disabled

This commit is contained in:
Dan Nixon 2017-10-27 19:54:43 +01:00
parent 2592f406c9
commit bb4f573615

View file

@ -1029,11 +1029,6 @@ static bool isSomeStatEnabled(void) {
static void osdShowStats(void)
{
if (!isSomeStatEnabled()) {
return;
}
uint8_t top = 2;
char buff[10];
@ -1126,7 +1121,7 @@ STATIC_UNIT_TESTED void osdRefresh(timeUs_t currentTimeUs)
osdResetStats();
osdShowArmed();
resumeRefreshAt = currentTimeUs + (REFRESH_1S / 2);
} else {
} else if (isSomeStatEnabled()) {
osdShowStats();
resumeRefreshAt = currentTimeUs + (60 * REFRESH_1S);
}