diff --git a/server/drivers/CFontz633.c b/server/drivers/CFontz633.c index 4f14289..f4c012b 100644 --- a/server/drivers/CFontz633.c +++ b/server/drivers/CFontz633.c @@ -39,7 +39,7 @@ * * THINGS TO DO: * + 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) * */ diff --git a/server/drivers/CFontzPacket.c b/server/drivers/CFontzPacket.c index 97c129c..a4b9e80 100644 --- a/server/drivers/CFontzPacket.c +++ b/server/drivers/CFontzPacket.c @@ -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); }