Skip to content

Commit fa8524f

Browse files
typo
1 parent cacb069 commit fa8524f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arduino_DataBus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ void Arduino_DataBus::writeYCbCrPixels(uint8_t *yData, uint8_t *cbData, uint8_t
197197
pxB = CB2B16[pxCb];
198198

199199
pxY = Y2I16[*yData++];
200-
_data16.value = CLIPRBE[pxY + pxCr] | CLIPGBE[pxY + pxG] | CLIPBBE[pxY + pxB];
200+
_data16.value = CLIPRBE[pxY + pxR] | CLIPGBE[pxY + pxG] | CLIPBBE[pxY + pxB];
201201
write(_data16.lsb);
202202
write(_data16.msb);
203203
pxY = Y2I16[*yData++];
204-
_data16.value = CLIPRBE[pxY + pxCr] | CLIPGBE[pxY + pxG] | CLIPBBE[pxY + pxB];
204+
_data16.value = CLIPRBE[pxY + pxR] | CLIPGBE[pxY + pxG] | CLIPBBE[pxY + pxB];
205205
write(_data16.lsb);
206206
write(_data16.msb);
207207
}

0 commit comments

Comments
 (0)