Issue 82 fixed (partially, I don't like too much the vertical lines, the screen is too little for that)

This commit is contained in:
bsongis
2012-09-04 15:29:25 +00:00
parent c0577e77df
commit 485a96745d
2 changed files with 8 additions and 11 deletions
+5 -5
View File
@@ -2128,10 +2128,10 @@ void menuProcLimits(uint8_t _event)
if (sub < NUM_CHNOUT) {
#if defined(PPM_CENTER_ADJUSTABLE)
lcd_outdezAtt(12*FW, 0, PPM_CENTER+limitaddress(sub)->ppmCenter+g_chans512[sub]/2, 0);
lcd_puts(12*FW, 0, STR_US);
lcd_outdezAtt(13*FW, 0, PPM_CENTER+limitaddress(sub)->ppmCenter+g_chans512[sub]/2, 0);
lcd_puts(13*FW, 0, STR_US);
#else
lcd_outdezAtt(12*FW, 0, GPERC(g_chans512[sub]), PREC1);
lcd_outdezAtt(13*FW, 0, GPERC(g_chans512[sub]), PREC1);
#endif
}
@@ -2165,7 +2165,7 @@ void menuProcLimits(uint8_t _event)
LimitData *ld = limitaddress(k) ;
#ifdef PPM_CENTER_ADJUSTABLE
#if defined(PPM_CENTER_ADJUSTABLE)
int8_t limit = ((g_model.extendedLimits && !limitaddress(k)->ppmCenter) ? 125 : 100);
#else
int16_t v = (ld->revert) ? -ld->offset : ld->offset;
@@ -2187,7 +2187,7 @@ void menuProcLimits(uint8_t _event)
switch(j)
{
case ITEM_LIMITS_OFFSET:
#ifdef PPM_LIMITS_UNIT_US
#if defined(PPM_LIMITS_UNIT_US)
lcd_outdezAtt( 8*FW, y, ((int32_t)ld->offset*128) / 25, attr|PREC1);
#else
lcd_outdezAtt( 8*FW, y, ld->offset, attr|PREC1);