Skip to content

Commit 98392a7

Browse files
committed
fixed SPI headers for 4to2 bit
1 parent deb6de1 commit 98392a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmdreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ bool spi_send_pix(uint8_t *pixbuf, uint32_t crc32, bool skip_when_busy) {
263263
#endif
264264

265265
// round length to 4-byte blocks
266-
h.len = (((source_bytes + 3) / 4) * 4) + sizeof(h) + sizeof(ph);
266+
h.len = (((target_bytes + 3) / 4) * 4) + sizeof(h) + sizeof(ph);
267267
ph.columns = source_width;
268268
ph.rows = source_height;
269269
ph.bitsperpixel = target_bitsperpixel;

0 commit comments

Comments
 (0)