Browse Source

- graphlcd-base: fix setBrightness() in vuplus driver patch

master
vanhofen 5 years ago
parent
commit
e30effd587
  1. 2
      patches/graphlcd-base/0005-add-vuplus-driver.patch

2
patches/graphlcd-base/0005-add-vuplus-driver.patch

@ -321,7 +321,7 @@
+void cDriverVUPLUS4K::SetBrightness(unsigned int brightness) +void cDriverVUPLUS4K::SetBrightness(unsigned int brightness)
+{ +{
+ int value = 0; + int value = 0;
+ value = 255 * brightness / 100; + value = 255 * brightness / 10;
+ +
+ FILE *f = fopen("/proc/stb/lcd/oled_brightness", "w"); + FILE *f = fopen("/proc/stb/lcd/oled_brightness", "w");
+ if (!f) + if (!f)

Loading…
Cancel
Save