1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

[Taranis] Issue #554 - Default is now :0 (all trims linked to the

default phase)
This commit is contained in:
Bertrand Songis 2014-01-27 09:26:02 +01:00
parent 046a4d253d
commit 16c1bd01c6
4 changed files with 30 additions and 67 deletions

View file

@ -1167,20 +1167,16 @@ void putsTrimMode(xcoord_t x, uint8_t y, uint8_t phase, uint8_t idx, LcdFlags at
{
trim_t v = getRawTrimValue(phase, idx);
putsChnLetter(x, y, idx+1, att);
if (v.mode < 0) {
lcd_putsAtt(x+FWNUM, y, "--", att);
lcd_putsAtt(x, y, "--", att);
}
else {
uint8_t p = v.mode >> 1;
if (v.mode % 2 == 0) {
lcd_putcAtt(x+FWNUM, y, '+', att);
}
else {
lcd_putcAtt(x+FWNUM, y, ':', att);
}
lcd_putcAtt(x+2*FWNUM, y, '0'+p, att);
if (v.mode % 2 == 0)
lcd_putcAtt(x+2, y, ':', att);
else
lcd_putcAtt(x, y, '+', att);
lcd_putcAtt(x+FW, y, '0'+p, att);
}
}
#else