[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; static bool longNames = false;
bool newLongNames = false; bool newLongNames = false;
static bool secondPage = false;
uint8_t ch;
switch(event) switch(event)
{ {
case EVT_KEY_BREAK(KEY_EXIT): case EVT_KEY_BREAK(KEY_EXIT):
popMenu(); popMenu();
return; 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_putsCenter(0*FH, CHANNELS_MONITOR);
lcd_invert_line(0); lcd_invert_line(0);
@@ -54,8 +65,6 @@ void menuChannelsView(uint8_t event)
// Column separator // Column separator
lcd_vline(LCD_W/2, FH, LCD_H-FH); lcd_vline(LCD_W/2, FH, LCD_H-FH);
uint8_t ch = 0;
for (uint8_t col=0; col<2; col++) { for (uint8_t col=0; col<2; col++) {
uint8_t x = col*LCD_W/2+1; uint8_t x = col*LCD_W/2+1;