New "Test" function switch (make DEBUG=YES)

New "Reset" function switch
TimeZone for GPS
BLINK attribute may be used without INVERS
Wrong first frame sent when DSM2=SERIAL (by Cam)
Text in status line blinking when NO DATA on FrSky telemetry screen
This commit is contained in:
bsongis
2012-03-08 18:44:48 +00:00
parent ac83640093
commit 26cdf24ca0
15 changed files with 173 additions and 77 deletions
+19 -4
View File
@@ -72,7 +72,20 @@ void lcd_putcAtt(uint8_t x, uint8_t y, const unsigned char c, uint8_t mode)
uint8_t *p = &displayBuf[ y / 8 * DISPLAY_W + x ];
const pm_uchar *q = &font_5x8_x20_x7f[ + (c-0x20)*5];
bool inv = (mode & INVERS) ? true : (mode & BLINK ? BLINK_ON_PHASE : false);
bool inv = false;
if (mode & BLINK) {
if (BLINK_ON_PHASE) {
if (mode & INVERS)
inv = true;
else
return;
}
}
else if (mode & INVERS) {
inv = true;
}
if(mode & DBLSIZE)
{
/* each letter consists of ten top bytes followed by
@@ -286,9 +299,11 @@ void lcd_outdezNAtt(uint8_t x, uint8_t y, int16_t val, uint8_t flags, uint8_t le
}
else {
x -= 2;
lcd_plot(x+1, y+6);
if (flags & INVERS || (flags & BLINK && BLINK_ON_PHASE))
lcd_vline(x+1, y, 8);
if ((~flags & BLINK) || (!BLINK_ON_PHASE)) {
lcd_plot(x+1, y+6);
if (flags & INVERS)
lcd_vline(x+1, y, 8);
}
}
}
val = ((uint16_t)val) / 10;