From e30effd587a5e3cebad8c226847e2a440e4426c6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 28 Jun 2020 21:45:07 +0200 Subject: [PATCH] - graphlcd-base: fix setBrightness() in vuplus driver patch --- patches/graphlcd-base/0005-add-vuplus-driver.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/graphlcd-base/0005-add-vuplus-driver.patch b/patches/graphlcd-base/0005-add-vuplus-driver.patch index 2d0d1ac3..fc4b0e20 100644 --- a/patches/graphlcd-base/0005-add-vuplus-driver.patch +++ b/patches/graphlcd-base/0005-add-vuplus-driver.patch @@ -321,7 +321,7 @@ +void cDriverVUPLUS4K::SetBrightness(unsigned int brightness) +{ + int value = 0; -+ value = 255 * brightness / 100; ++ value = 255 * brightness / 10; + + FILE *f = fopen("/proc/stb/lcd/oled_brightness", "w"); + if (!f)