Skip to content

Commit 524f9c8

Browse files
committed
Merge pull request sciguy14#1 from lovebug356/patch-1
Updating rgb_nightlight.ino from Ch2 to replace an "if" that should have been an "else if" statement.
2 parents 01570bd + 8b5ee43 commit 524f9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter 02/rgb_nightlight/rgb_nightlight.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void setMode(int mode)
6969
digitalWrite(BLED, HIGH);
7070
}
7171
//PURPLE (RED+BLUE)
72-
if (mode == 4)
72+
else if (mode == 4)
7373
{
7474
analogWrite(RLED, 127);
7575
analogWrite(GLED, 0);

0 commit comments

Comments
 (0)