mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Issue #592 - 422bytes saved on 9x stock!!!
This commit is contained in:
parent
cae4d1ecf6
commit
38129abd43
12 changed files with 121 additions and 106 deletions
|
@ -1106,22 +1106,15 @@ void putsCurve(xcoord_t x, uint8_t y, int8_t idx, LcdFlags att)
|
|||
}
|
||||
#endif
|
||||
|
||||
void putsTmrMode(xcoord_t x, uint8_t y, int8_t mode, LcdFlags att)
|
||||
void putsTimerMode(xcoord_t x, uint8_t y, int8_t mode, LcdFlags att)
|
||||
{
|
||||
if (mode < 0) {
|
||||
mode = TMR_VAROFS - mode - 1;
|
||||
lcd_putcAtt(x-1*FW, y, '!', att);
|
||||
if (mode >= 0) {
|
||||
if (mode < TMR_VAROFS)
|
||||
return lcd_putsiAtt(x, y, STR_VTMRMODES, mode, att);
|
||||
else
|
||||
mode -= (TMR_VAROFS-1);
|
||||
}
|
||||
else if (mode < TMR_VAROFS) {
|
||||
lcd_putsiAtt(x, y, STR_VTMRMODES, mode, att);
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode >= TMR_VAROFS+NUM_PSWITCH+NUM_CSW) {
|
||||
mode++;
|
||||
}
|
||||
|
||||
putsSwitches(x, y, mode-(TMR_VAROFS-1), att);
|
||||
putsSwitches(x, y, mode, att);
|
||||
}
|
||||
|
||||
void putsTrimMode(xcoord_t x, uint8_t y, uint8_t phase, uint8_t idx, LcdFlags att)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue