Skip to content
Snippets Groups Projects
Commit 7491ed6a authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

pt/test_panel_brightness: Reduce devkit brightness to 100

The '+1' is added in the assert itself now.
parent ec764f26
No related branches found
Tags v0.0.15
No related merge requests found
......@@ -5,9 +5,6 @@ from . import boardtype
def test_panel_brightness():
"Check if panel brighness range"
path = "/sys/class/backlight/backlight-dsi"
if boardtype.is_librem5():
upper = 228
else:
upper = 101
upper = 228 if boardtype.is_librem5() else 100
f = open(os.path.join(path, 'brightness'))
assert int(f.read()) in range(0, upper + 1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment