[Taranis] New gauge in Mixers/Expos screen was not right when there was
no line associated to the Mix/Input channel. Now the gauge is not displayed in such case. Needs tests again, thanks!
This commit is contained in:
@@ -837,12 +837,16 @@ void menuModelExpoMix(uint8_t expo, uint8_t event)
|
|||||||
|
|
||||||
// Value
|
// Value
|
||||||
uint8_t index = expoAddress(s_currIdx)->chn;
|
uint8_t index = expoAddress(s_currIdx)->chn;
|
||||||
lcd_outdezAtt(120, 2, calcRESXto1000(anas[index]), PREC1|TINSIZE);
|
if (!s_currCh) {
|
||||||
|
lcd_outdezAtt(120, 2, calcRESXto1000(anas[index]), PREC1|TINSIZE);
|
||||||
|
}
|
||||||
|
|
||||||
SIMPLE_MENU(STR_MENUINPUTS, menuTabModel, e_InputsAll, s_maxLines);
|
SIMPLE_MENU(STR_MENUINPUTS, menuTabModel, e_InputsAll, s_maxLines);
|
||||||
|
|
||||||
// Gauge
|
// Gauge
|
||||||
drawGauge(120, 1, 58, 6, anas[index], 1024);
|
if (!s_currCh) {
|
||||||
|
drawGauge(120, 1, 58, 6, anas[index], 1024);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lcd_outdezAtt(FW*sizeof(TR_MIXER)+FW+FW/2, 0, getExpoMixCount(false));
|
lcd_outdezAtt(FW*sizeof(TR_MIXER)+FW+FW/2, 0, getExpoMixCount(false));
|
||||||
@@ -850,13 +854,17 @@ void menuModelExpoMix(uint8_t expo, uint8_t event)
|
|||||||
|
|
||||||
// Value
|
// Value
|
||||||
uint8_t index = mixAddress(s_currIdx)->destCh;
|
uint8_t index = mixAddress(s_currIdx)->destCh;
|
||||||
displayHeaderChannelName(index);
|
if (!s_currCh) {
|
||||||
lcd_outdezAtt(120, 2, calcRESXto1000(ex_chans[index]), PREC1|TINSIZE);
|
displayHeaderChannelName(index);
|
||||||
|
lcd_outdezAtt(120, 2, calcRESXto1000(ex_chans[index]), PREC1|TINSIZE);
|
||||||
|
}
|
||||||
|
|
||||||
SIMPLE_MENU(STR_MIXER, menuTabModel, e_MixAll, s_maxLines);
|
SIMPLE_MENU(STR_MIXER, menuTabModel, e_MixAll, s_maxLines);
|
||||||
|
|
||||||
// Gauge
|
// Gauge
|
||||||
drawGauge(120, 1, 58, 6, ex_chans[index], 1024);
|
if (!s_currCh) {
|
||||||
|
drawGauge(120, 1, 58, 6, ex_chans[index], 1024);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub = m_posVert;
|
sub = m_posVert;
|
||||||
|
|||||||
Reference in New Issue
Block a user