Skip to content

Commit

Permalink
update codes, upgrade ALIGENIE LIGHT codes
Browse files Browse the repository at this point in the history
  • Loading branch information
i3water committed Nov 7, 2018
1 parent 5ca18e0 commit ede58b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/Blinker_AliGenie/AliGenie_LIGHT/AliGenie_LIGHT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ void aligenieRelativeBright(int32_t bright)
{
BLINKER_LOG2("need set relative brightness: ", bright);

colorW += bright;
if (colorW + bright < 255 && colorW + bright >= 0) {
colorW += bright;
}

BLINKER_LOG2("now set brightness: ", colorW);

Expand Down

0 comments on commit ede58b7

Please sign in to comment.