chore(color): display mixer period in statistic screen (#4901)
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
#include "tasks.h"
|
#include "tasks.h"
|
||||||
#include "tasks/mixer_task.h"
|
#include "tasks/mixer_task.h"
|
||||||
|
#include "mixer_scheduler.h"
|
||||||
|
|
||||||
class StatisticsViewPage : public PageTab
|
class StatisticsViewPage : public PageTab
|
||||||
{
|
{
|
||||||
@@ -264,11 +265,16 @@ void DebugViewPage::build(Window* window)
|
|||||||
|
|
||||||
// Mixer data
|
// Mixer data
|
||||||
static std::string pad_STR_MS = " " + std::string(STR_MS);
|
static std::string pad_STR_MS = " " + std::string(STR_MS);
|
||||||
|
static std::string pad_STR_PERIOD = std::string(STR_PERIOD) + ": ";
|
||||||
new StaticText(line, rect_t{}, STR_TMIXMAXMS);
|
new StaticText(line, rect_t{}, STR_TMIXMAXMS);
|
||||||
new DynamicNumber<uint16_t>(
|
new DynamicNumber<uint16_t>(
|
||||||
line, rect_t{}, [] { return DURATION_MS_PREC2(maxMixerDuration); },
|
line, rect_t{}, [] { return DURATION_MS_PREC2(maxMixerDuration); },
|
||||||
PREC2 | COLOR_THEME_PRIMARY1, nullptr, pad_STR_MS.c_str());
|
PREC2 | COLOR_THEME_PRIMARY1, nullptr, pad_STR_MS.c_str());
|
||||||
|
|
||||||
|
new DynamicNumber<uint16_t>(
|
||||||
|
line, rect_t{}, [] { return getMixerSchedulerPeriod() / 1000; },
|
||||||
|
COLOR_THEME_PRIMARY1, pad_STR_PERIOD.c_str(), pad_STR_MS.c_str());
|
||||||
|
|
||||||
line = window->newLine(grid);
|
line = window->newLine(grid);
|
||||||
line->padAll(PAD_TINY);
|
line->padAll(PAD_TINY);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user