From 38ea2afa9c6f514747ad7c5a3d090e7fb232e9e1 Mon Sep 17 00:00:00 2001 From: "bernet.andre@gmail.com" Date: Thu, 21 Mar 2013 14:55:56 +0000 Subject: [PATCH] [TARANIS] Channel monitor 2nd page --- src/view_channels.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/view_channels.cpp b/src/view_channels.cpp index c6307d47f..da6bf0f0d 100644 --- a/src/view_channels.cpp +++ b/src/view_channels.cpp @@ -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;