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;