Add bottom mixer status bar when editing mixer (#4001)

* Add bottom mixer status bar when editing mixer

* Cosmetics
This commit is contained in:
3djc
2016-11-08 15:32:29 +04:00
committed by Andre Bernet
parent 189c49f725
commit b06d14b4c7
+3
View File
@@ -21,6 +21,8 @@
#include "opentx.h" #include "opentx.h"
#include <stdio.h> #include <stdio.h>
void displayMixStatus(uint8_t channel);
int getMixesLinesCount() int getMixesLinesCount()
{ {
int lastch = -1; int lastch = -1;
@@ -176,6 +178,7 @@ bool menuModelMixOne(event_t event)
SUBMENU_WITH_OPTIONS(STR_MIXER, ICON_MODEL_MIXER, MIX_FIELD_COUNT, OPTION_MENU_NO_SCROLLBAR, { 0, 0, 0, 0, 0, CASE_CURVES(1) CASE_FLIGHT_MODES((MAX_FLIGHT_MODES-1) | NAVIGATION_LINE_BY_LINE) 0 /*, ...*/ }); SUBMENU_WITH_OPTIONS(STR_MIXER, ICON_MODEL_MIXER, MIX_FIELD_COUNT, OPTION_MENU_NO_SCROLLBAR, { 0, 0, 0, 0, 0, CASE_CURVES(1) CASE_FLIGHT_MODES((MAX_FLIGHT_MODES-1) | NAVIGATION_LINE_BY_LINE) 0 /*, ...*/ });
putsChn(50, 3+FH, md2->destCh+1, MENU_TITLE_COLOR); putsChn(50, 3+FH, md2->destCh+1, MENU_TITLE_COLOR);
displayMixStatus(md2->destCh);
// The separation line between 2 columns // The separation line between 2 columns
lcdDrawSolidVerticalLine(MENU_COLUMN2_X-10, DEFAULT_SCROLLBAR_Y-FH, DEFAULT_SCROLLBAR_H+5, TEXT_COLOR); lcdDrawSolidVerticalLine(MENU_COLUMN2_X-10, DEFAULT_SCROLLBAR_Y-FH, DEFAULT_SCROLLBAR_H+5, TEXT_COLOR);