Skip to content

Commit b57ea57

Browse files
Fix big-endian DMA
1 parent 605474e commit b57ea57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_SPITFT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len,
950950
int d, numDescriptors = (len + 32766) / 32767;
951951
for(d=0; d<numDescriptors; d++) {
952952
int count = (len < 32767) ? len : 32767;
953-
descriptor[d].SRCADDR.reg = (uint32_t)colors;
953+
descriptor[d].SRCADDR.reg = (uint32_t)colors + count * 2;
954954
descriptor[d].BTCTRL.bit.SRCINC = 1;
955955
descriptor[d].BTCNT.reg = count * 2;
956956
descriptor[d].DESCADDR.reg = (uint32_t)&descriptor[d+1];

0 commit comments

Comments
 (0)