feat: indicate in analog debug if serial gimbals are used (#5442)
This commit is contained in:
@@ -86,7 +86,13 @@ void menuRadioDiagAnalogs(event_t event)
|
||||
x = INDENT_WIDTH;
|
||||
y += FH;
|
||||
}
|
||||
drawStringWithIndex(x, y, "A", i + 1);
|
||||
if (((adcGetInputMask() & (1 << i)) != 0) && i < adcGetMaxInputs(ADC_INPUT_MAIN)) {
|
||||
lcdDrawText(x, y, "D");
|
||||
lcdDrawNumber(lcdNextPos, y, i + 1);
|
||||
}
|
||||
else {
|
||||
lcdDrawNumber(x, y, i+1, LEADING0|LEFT, 2);
|
||||
}
|
||||
lcdDrawChar(lcdNextPos, y, ':');
|
||||
switch (viewpage) {
|
||||
case (ANAVIEW_RAWLOWFPS):
|
||||
|
||||
@@ -56,7 +56,13 @@ void menuRadioDiagAnalogs(event_t event)
|
||||
for (uint8_t i = 0; i < MAX_ANALOG_INPUTS; i++) {
|
||||
coord_t y = MENU_HEADER_HEIGHT + 1 + (i/2)*FH;
|
||||
uint8_t x = i&1 ? LCD_W/2 + FW : 0;
|
||||
lcdDrawNumber(x, y, i+1, LEADING0|LEFT, 2);
|
||||
if (((adcGetInputMask() & (1 << i)) != 0) && i < adcGetMaxInputs(ADC_INPUT_MAIN)) {
|
||||
lcdDrawText(x, y, "D");
|
||||
lcdDrawNumber(lcdNextPos, y, i + 1);
|
||||
}
|
||||
else {
|
||||
lcdDrawNumber(x, y, i + 1, LEADING0 | LEFT, 2);
|
||||
}
|
||||
lcdDrawChar(x+2*FW-2, y, ':');
|
||||
|
||||
switch (viewpage)
|
||||
|
||||
@@ -84,8 +84,11 @@ class AnaViewWindow : public Window
|
||||
#endif
|
||||
|
||||
lv_obj_set_style_pad_column(line->getLvObj(), 8, 0);
|
||||
if (((adcGetInputMask() & (1 << i)) != 0) && i < adcGetMaxInputs(ADC_INPUT_MAIN))
|
||||
sprintf(s, "D%d :", i + 1);
|
||||
else
|
||||
sprintf(s, "%02d :", i + 1);
|
||||
|
||||
sprintf(s, "%02d :", i + 1);
|
||||
new StaticText(line, rect_t{}, s);
|
||||
|
||||
auto lbl = new DynamicText(
|
||||
|
||||
Reference in New Issue
Block a user