aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/Nokia6610GE12
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-26 14:59:52 +0200
committerinmarket <andrewh@inmarket.com.au>2013-10-26 23:29:38 +1000
commita756806b77fc431c9515041fc83dbc06c2854b56 (patch)
treeb05f825e9acadb4a91e8b5a6b726709cec7a5fa6 /drivers/gdisp/Nokia6610GE12
parent3a14be55eb221f861015ae307b132ff8484974c3 (diff)
downloaduGFX-a756806b77fc431c9515041fc83dbc06c2854b56.tar.gz
uGFX-a756806b77fc431c9515041fc83dbc06c2854b56.tar.bz2
uGFX-a756806b77fc431c9515041fc83dbc06c2854b56.zip
Compile Fix for Nokia6610GE12
Diffstat (limited to 'drivers/gdisp/Nokia6610GE12')
-rw-r--r--drivers/gdisp/Nokia6610GE12/gdisp_lld.c2
1 files changed, 1 insertions, 1 deletions
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;