Skip to content

Commit db55e95

Browse files
committed
brightness: Fix exception when setting brightness
1 parent 435ecbd commit db55e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ov5640.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ def brightness(self, value):
11981198
"Invalid brightness value {value}, use a value from -4..4 inclusive"
11991199
)
12001200
self._write_group_3_settings(
1201-
[0x5587, abs(value) << 4, 0x9 if value < 0 else 0x1]
1201+
[0x5587, abs(value) << 4, 0x5588, 0x9 if value < 0 else 0x1]
12021202
)
12031203

12041204
@property

0 commit comments

Comments
 (0)