tmrttmrt/Fixes#2750__Mega2560_ST7920_mixer_freq_too_slow

This commit is contained in:
tmertelj
2015-09-03 20:32:23 +02:00
committed by Tomaz Mertelj
7 changed files with 100 additions and 11 deletions
+12
View File
@@ -43,6 +43,9 @@ void perMain()
{
#if defined(SIMU)
doMixerCalculations();
#endif
#if defined(LCD_ST7920)
uint8_t lcdstate=0;
#endif
uint16_t t0 = getTmr16KHz();
int16_t delta = (nextMixerEndTime - lastMixerDuration) - t0;
@@ -129,6 +132,9 @@ 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
lcd_clear();
if (menuEvent) {
m_posVert = menuEvent == EVT_ENTRY_UP ? g_menuPos[g_menuStackPtr] : 0;
@@ -153,7 +159,13 @@ void perMain()
drawStatusLine();
#if defined(LCD_ST7920)
}
lcdstate=lcdRefresh_ST7920(0);
#else
lcdRefresh();
#endif
#endif
if (SLAVE_MODE()) {