[Taranis] Display problem in the Mixer screen

This commit is contained in:
Bertrand Songis
2016-09-02 18:50:55 +02:00
parent 07c4563764
commit 6225c048ef
3 changed files with 19 additions and 58 deletions
+1 -11
View File
@@ -42,23 +42,13 @@ const MenuHandlerFunc menuTabModel[] = {
menuModelDisplay
};
#if MENU_COLUMNS > 1
uint8_t editDelay(coord_t x, coord_t y, event_t event, uint8_t attr, const pm_char * str, uint8_t delay)
{
lcdDrawText(x, y, str);
lcdDrawNumber(x+MIXES_2ND_COLUMN, y, (10/DELAY_STEP)*delay, attr|PREC1|LEFT);
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, delay, DELAY_MAX);
return delay;
}
#else
uint8_t editDelay(coord_t y, event_t event, uint8_t attr, const pm_char * str, uint8_t delay)
uint8_t editDelay(coord_t y, event_t event, uint8_t attr, const char * str, uint8_t delay)
{
lcdDrawTextAlignedLeft(y, str);
lcdDrawNumber(MIXES_2ND_COLUMN, y, (10/DELAY_STEP)*delay, attr|PREC1|LEFT);
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, delay, DELAY_MAX);
return delay;
}
#endif
#define COPY_MODE 1
#define MOVE_MODE 2