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

Corrected required remaining rows for stats check

This commit is contained in:
Darren Lines 2024-02-17 22:17:51 +00:00
parent 57d84fc404
commit 014942a48d

View file

@ -4978,7 +4978,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
// Draw these if there is space space // Draw these if there is space space
if (row < (osdDisplayPort->cols-3)) row = drawStat_GForce(statNameX, row, statValuesX); if (row < (osdDisplayPort->cols-3)) row = drawStat_GForce(statNameX, row, statValuesX);
#ifdef USE_STATS #ifdef USE_STATS
if (row < (osdDisplayPort->cols-6) && statsConfig()->stats_enabled) row = drawStat_Stats(statNameX, row, statValuesX, false); if (row < (osdDisplayPort->cols-7) && statsConfig()->stats_enabled) row = drawStat_Stats(statNameX, row, statValuesX, false);
#endif #endif
} else { } else {
switch (page) { switch (page) {
@ -5021,7 +5021,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
#endif #endif
#endif #endif
#ifdef USE_STATS #ifdef USE_STATS
if (row < (osdDisplayPort->cols-6) && statsConfig()->stats_enabled) row = drawStat_Stats(statNameX, row, statValuesX, false); if (row < (osdDisplayPort->cols-7) && statsConfig()->stats_enabled) row = drawStat_Stats(statNameX, row, statValuesX, false);
#endif #endif
break; break;