mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Warning removed
This commit is contained in:
parent
5c880e47cd
commit
4048d65724
1 changed files with 5 additions and 5 deletions
|
@ -682,7 +682,7 @@ void menuModelFailsafe(uint8_t event)
|
||||||
|
|
||||||
#if LCD_W >= 212
|
#if LCD_W >= 212
|
||||||
#define COL_W (LCD_W/2)
|
#define COL_W (LCD_W/2)
|
||||||
#define BAR_W 64
|
const uint8_t SLIDER_W = 64;
|
||||||
// Column separator
|
// Column separator
|
||||||
lcd_vline(LCD_W/2, FH, LCD_H-FH);
|
lcd_vline(LCD_W/2, FH, LCD_H-FH);
|
||||||
|
|
||||||
|
@ -691,7 +691,7 @@ void menuModelFailsafe(uint8_t event)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define COL_W (LCD_W)
|
#define COL_W (LCD_W)
|
||||||
#define BAR_W 90
|
const uint8_t SLIDER_W = 90;
|
||||||
ch = 8 * (m_posVert / 8);
|
ch = 8 * (m_posVert / 8);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -742,13 +742,13 @@ void menuModelFailsafe(uint8_t event)
|
||||||
flags |= BLINK;
|
flags |= BLINK;
|
||||||
}
|
}
|
||||||
#if defined(PPM_UNIT_US)
|
#if defined(PPM_UNIT_US)
|
||||||
uint8_t wbar = (longNames ? BAR_W-10 : BAR_W);
|
uint8_t wbar = (longNames ? SLIDER_W-10 : SLIDER_W);
|
||||||
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, PPM_CH_CENTER(ch)+val/2, flags);
|
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, PPM_CH_CENTER(ch)+val/2, flags);
|
||||||
#elif defined(PPM_UNIT_PERCENT_PREC1)
|
#elif defined(PPM_UNIT_PERCENT_PREC1)
|
||||||
uint8_t wbar = (longNames ? BAR_W-16 : BAR_W-6);
|
uint8_t wbar = (longNames ? SLIDER_W-16 : SLIDER_W-6);
|
||||||
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, calcRESXto1000(val), PREC1|flags);
|
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, calcRESXto1000(val), PREC1|flags);
|
||||||
#else
|
#else
|
||||||
uint8_t wbar = (longNames ? BAR_W-10 : BAR_W);
|
uint8_t wbar = (longNames ? SLIDER_W-10 : SLIDER_W);
|
||||||
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, calcRESXto1000(val)/10, flags);
|
lcd_outdezAtt(x+COL_W-4-wbar-ofs, y, calcRESXto1000(val)/10, flags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue