From a756806b77fc431c9515041fc83dbc06c2854b56 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 26 Oct 2013 14:59:52 +0200 Subject: [PATCH] Compile Fix for Nokia6610GE12 --- drivers/gdisp/Nokia6610GE12/gdisp_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c index c04b4cf9..d1086c46 100644 --- a/drivers/gdisp/Nokia6610GE12/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld.c @@ -248,7 +248,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { case GDISP_CONTROL_CONTRAST: if ((unsigned)g->p.ptr > 100) g->p.ptr = (void *)100; 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); g->g.Contrast = (unsigned)g->p.ptr; return;