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:
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
|
// 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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue