From 57c7083188c2d3a968951836f33aaee8bf7100eb Mon Sep 17 00:00:00 2001 From: Paint Your Dragon Date: Sat, 26 Nov 2011 23:29:08 -0800 Subject: [PATCH] Min brightness bug fix w/black screen --- Processing/Adalight/Adalight.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processing/Adalight/Adalight.pde b/Processing/Adalight/Adalight.pde index cc0497b..4249906 100644 --- a/Processing/Adalight/Adalight.pde +++ b/Processing/Adalight/Adalight.pde @@ -347,7 +347,7 @@ void draw () { sum = ledColor[i][0] + ledColor[i][1] + ledColor[i][2]; if(sum < minBrightness) { if(sum == 0) { // To avoid divide-by-zero - deficit = sum / 3; // Spread equally to R,G,B + deficit = minBrightness / 3; // Spread equally to R,G,B ledColor[i][0] += deficit; ledColor[i][1] += deficit; ledColor[i][2] += deficit;