1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 00:35:34 +03:00

OSD: Increase initialization screen display time to take into consideration display init time and more if stats are enabled

This commit is contained in:
Michel Pastor 2018-03-02 01:16:01 +01:00
parent 9edad3bc2a
commit fa44ff54f7

View file

@ -1747,8 +1747,7 @@ void osdInit(displayPort_t *osdDisplayPortToUse)
#endif
displayResync(osdDisplayPort);
resumeRefreshAt = micros() + (4 * REFRESH_1S);
resumeRefreshAt = micros() + ((statsConfig()->stats_enabled ? 10 : 4) + 2) * REFRESH_1S; // considering it takes about 2 seconds for the initialization screen to be displayed
}
static void osdResetStats(void)