1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

Fixes#2750__Mega2560_ST7920_mixer_freq_too_slow

This commit is contained in:
tmertelj 2015-09-30 21:28:30 +02:00
parent 8a6ba0eb8e
commit 11753450ae
3 changed files with 25 additions and 26 deletions

View file

@ -265,6 +265,9 @@ void lcdRefresh();
#if defined(LCD_ST7920)
uint8_t lcdRefresh_ST7920(uint8_t full);
#define IS_LCD_REFRESH_ALLOWED() (0==lcdstate)
#else
#define IS_LCD_REFRESH_ALLOWED() (1)
#endif
#if defined(BOOT)

View file

@ -132,9 +132,7 @@ void perMain()
const char *warn = s_warning;
uint8_t menu = s_menu_count;
#if defined(LCD_ST7920)
if(0==lcdstate){//No need to redraw until lcdRefresh_ST7920(0) below completely refreshes the display.
#endif
if(IS_LCD_REFRESH_ALLOWED()){//No need to redraw until lcdRefresh_ST7920(0) below completely refreshes the display.
lcd_clear();
if (menuEvent) {
m_posVert = menuEvent == EVT_ENTRY_UP ? g_menuPos[g_menuStackPtr] : 0;
@ -156,11 +154,9 @@ void perMain()
}
}
#endif
drawStatusLine();
#if defined(LCD_ST7920)
}
#if defined(LCD_ST7920)
lcdstate=lcdRefresh_ST7920(0);
#else
lcdRefresh();

View file

@ -1098,7 +1098,7 @@ void evalMixes(uint8_t tick10ms)
}
}
#if (defined(PCBMEGA2560) || defined(PCBGRUVIN9X)) && defined(DEBUG) && !defined(VOICE)
#if (defined(CPU2560) && defined(DEBUG) && !defined(VOICE))
PORTH &= ~0x40; // PORTH:6 HIGH->LOW signals end of mixer interrupt
#endif
}