[TARANIS] Channel monitor 2nd page

This commit is contained in:
bernet.andre@gmail.com
2013-03-21 14:55:56 +00:00
parent 2ab712f40b
commit 38ea2afa9c
+11 -2
View File
@@ -40,13 +40,24 @@ void menuChannelsView(uint8_t event)
{
static bool longNames = false;
bool newLongNames = false;
static bool secondPage = false;
uint8_t ch;
switch(event)
{
case EVT_KEY_BREAK(KEY_EXIT):
popMenu();
return;
case EVT_KEY_FIRST(KEY_RIGHT):
case EVT_KEY_FIRST(KEY_LEFT):
secondPage = !secondPage;
break;
}
if(secondPage)
ch = 16;
else
ch = 0;
lcd_putsCenter(0*FH, CHANNELS_MONITOR);
lcd_invert_line(0);
@@ -54,8 +65,6 @@ void menuChannelsView(uint8_t event)
// Column separator
lcd_vline(LCD_W/2, FH, LCD_H-FH);
uint8_t ch = 0;
for (uint8_t col=0; col<2; col++) {
uint8_t x = col*LCD_W/2+1;