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
+1 -1
View File
@@ -39,7 +39,7 @@
* *
* THINGS TO DO: * THINGS TO DO:
* + Make the caching at least for heartbeat icon * + Make the caching at least for heartbeat icon
* + Create and use the library (for custom char handeling) * + Create and use the library (for custom char handling)
* *
*/ */
+2 -2
View File
@@ -613,8 +613,8 @@ CFontz633_set_contrast (Driver *drvthis, int promille)
// on CF633: 0 - 50, on CF631, CF635: 0 - 255 // on CF633: 0 - 50, on CF631, CF635: 0 - 255
hardware_contrast = (p->model == 633) 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 $$$ */ /* Next line is to be checked $$$ */
send_onebyte_message(p->fd, CF633_Set_LCD_Contrast, hardware_contrast); send_onebyte_message(p->fd, CF633_Set_LCD_Contrast, hardware_contrast);
} }