We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e512dfc commit c552d22Copy full SHA for c552d22
driver.py
@@ -269,13 +269,8 @@ def generate_backlight(p: Panel, options: Options) -> str:
269
s += f'\tstruct {p.short_id} *ctx = mipi_dsi_get_drvdata(dsi);\n'
270
271
s += '''\
272
- u16 brightness = bl->props.brightness;
+ u16 brightness = backlight_get_brightness(bl);
273
int ret;
274
-
275
- if (bl->props.power != FB_BLANK_UNBLANK ||
276
- bl->props.fb_blank != FB_BLANK_UNBLANK ||
277
- bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK))
278
- brightness = 0;
279
'''
280
281
if options.backlight_gpio:
0 commit comments