From 180d4ebe133e4f9135544c338c4e259d33eaf6f7 Mon Sep 17 00:00:00 2001 From: Lucca Ketterer Date: Mon, 26 Apr 2021 23:14:22 +0200 Subject: [PATCH] low lightning flashing reduction --- client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client.py b/client/client.py index 68dbabe..ce9b36d 100755 --- a/client/client.py +++ b/client/client.py @@ -114,6 +114,8 @@ def ups(): def color_correction(r,g,b): amp = [1,1,0.8] + if r < 5 and g < 5 and b < 5: + return 0,0,0 return int(r*amp[0]), int(g*amp[1]), int(b*amp[2]) def ambient_light():