Skip to content

Commit 84b985b

Browse files
authored
Merge pull request #36 from MatzElectronics/patch-3
Corrected typo in colorpal.c
2 parents 723cd08 + 3f7407f commit 84b985b

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

Learn/Simple Libraries/Sensor/libcolorpal/colorpal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ unsigned int colorPalRRGGBB( int r, int g, int b )
175175
if( g < 0 ) g = 0; if( g > 255 ) g = 255;
176176
if( b < 0 ) b = 0; if( b > 255 ) b = 255;
177177

178-
return ((r & 0xFF) << 16 | (b & 0xFF) << 8 | (b & 0xFF));
178+
return ((r & 0xFF) << 16 | (g & 0xFF) << 8 | (b & 0xFF));
179179
}
180180

181181

2.5 KB
Binary file not shown.
8.95 KB
Binary file not shown.

0 commit comments

Comments
 (0)