little fixes: constrast setting for CF63x in CFontzPacket.c, typo in Cfontz633.c

This commit is contained in:
marschap
2005-06-04 07:53:14 +00:00
parent 9c62bac058
commit 09937f0edd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -613,8 +613,8 @@ CFontz633_set_contrast (Driver *drvthis, int promille)
// on CF633: 0 - 50, on CF631, CF635: 0 - 255
hardware_contrast = (p->model == 633)
? ((p->contrast * 255) / 1000)
: (p->contrast / 20);
? (p->contrast / 20)
: ((p->contrast * 255) / 1000);
/* Next line is to be checked $$$ */
send_onebyte_message(p->fd, CF633_Set_LCD_Contrast, hardware_contrast);
}