@@ -23,6 +23,9 @@
|
|||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "libopenui.h"
|
#include "libopenui.h"
|
||||||
|
#if defined(CROSSFIRE)
|
||||||
|
#include "mixer_scheduler.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
char *getVersion(char *str, PXX2Version version)
|
char *getVersion(char *str, PXX2Version version)
|
||||||
{
|
{
|
||||||
@@ -102,14 +105,20 @@ class versionDialog: public Dialog
|
|||||||
if (g_model.moduleData[module].type == MODULE_TYPE_NONE) {
|
if (g_model.moduleData[module].type == MODULE_TYPE_NONE) {
|
||||||
new StaticText(form, grid->getFieldSlot(1, 0), STR_OFF, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(form, grid->getFieldSlot(1, 0), STR_OFF, 0, COLOR_THEME_PRIMARY1);
|
||||||
}
|
}
|
||||||
#if defined(HARDWARE_EXTERNAL_ACCESS_MOD)
|
#if defined(CROSSFIRE)
|
||||||
|
else if (isModuleCrossfire(module)) {
|
||||||
|
char statusText[64] = "";
|
||||||
|
new StaticText(form, grid->getFieldSlot(2, 0), "CRSF", 0, COLOR_THEME_PRIMARY1);
|
||||||
|
sprintf(statusText,"%d Hz %lu Err", 1000000 / getMixerSchedulerPeriod(), telemetryErrors);
|
||||||
|
new StaticText(form, grid->getFieldSlot(2, 1), statusText, 0, COLOR_THEME_PRIMARY1);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
else if (isModuleMultimodule(module)) {
|
else if (isModuleMultimodule(module)) {
|
||||||
char statusText[64];
|
char statusText[64] = "";
|
||||||
new StaticText(form, grid->getFieldSlot(2, 0), "Multimodule", 0, COLOR_THEME_PRIMARY1);
|
new StaticText(form, grid->getFieldSlot(2, 0), "Multimodule", 0, COLOR_THEME_PRIMARY1);
|
||||||
getMultiModuleStatus(module).getStatusString(statusText);
|
getMultiModuleStatus(module).getStatusString(statusText);
|
||||||
new StaticText(form, grid->getFieldSlot(2, 1), statusText, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(form, grid->getFieldSlot(2, 1), statusText, 0, COLOR_THEME_PRIMARY1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
else if (!isModulePXX2(module)) {
|
else if (!isModulePXX2(module)) {
|
||||||
new StaticText(form, grid->getFieldSlot(1, 0), STR_NO_INFORMATION, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(form, grid->getFieldSlot(1, 0), STR_NO_INFORMATION, 0, COLOR_THEME_PRIMARY1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user