fix previous commit
This commit is contained in:
@@ -69,14 +69,17 @@ update_screen(mode *m, int display)
|
|||||||
int old_status = status;
|
int old_status = status;
|
||||||
|
|
||||||
if (m && m->func) {
|
if (m && m->func) {
|
||||||
|
#ifdef LCDPROC_EYEBOXONE
|
||||||
|
int init_flag = (m->flags & INITIALIZED);
|
||||||
|
#endif
|
||||||
|
status = m->func(m->timer, display, &(m->flags));
|
||||||
#ifdef LCDPROC_EYEBOXONE
|
#ifdef LCDPROC_EYEBOXONE
|
||||||
/* Eyebox Init */
|
/* Eyebox Init */
|
||||||
if((m->flags & INITIALIZED) == 0)
|
if (init_flag == 0)
|
||||||
eyebox_screen(m->which,0);
|
eyebox_screen(m->which,0);
|
||||||
/* Eyebox Flush */
|
/* Eyebox Flush */
|
||||||
eyebox_screen(m->which,1);
|
eyebox_screen(m->which,1);
|
||||||
#endif
|
#endif
|
||||||
status = m->func(m->timer, display, &(m->flags));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status != old_status)
|
if (status != old_status)
|
||||||
|
|||||||
Reference in New Issue
Block a user