Compile Fix for Nokia6610GE12
This commit is contained in:
parent
3a14be55eb
commit
a756806b77
@ -248,7 +248,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
|||||||
case GDISP_CONTROL_CONTRAST:
|
case GDISP_CONTROL_CONTRAST:
|
||||||
if ((unsigned)g->p.ptr > 100) g->p.ptr = (void *)100;
|
if ((unsigned)g->p.ptr > 100) g->p.ptr = (void *)100;
|
||||||
acquire_bus(g);
|
acquire_bus(g);
|
||||||
write_reg(g, CONTRAST,(unsigned)128*g->p.ptr/101-64);
|
write_reg(g, SETCON,(unsigned)128*(unsigned)g->p.ptr/101-64);
|
||||||
release_bus(g);
|
release_bus(g);
|
||||||
g->g.Contrast = (unsigned)g->p.ptr;
|
g->g.Contrast = (unsigned)g->p.ptr;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user