mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 08:15:26 +03:00
Corrected required remaining rows for stats check
This commit is contained in:
parent
57d84fc404
commit
014942a48d
1 changed files with 2 additions and 2 deletions
|
@ -4978,7 +4978,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
|
|||
// Draw these if there is space space
|
||||
if (row < (osdDisplayPort->cols-3)) row = drawStat_GForce(statNameX, row, statValuesX);
|
||||
#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
|
||||
} else {
|
||||
switch (page) {
|
||||
|
@ -5021,7 +5021,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
|
|||
#endif
|
||||
#endif
|
||||
#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
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue