mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-04 06:16:42 +00:00
Add an reference to the linux specific max spi bytes size
This commit is contained in:
@@ -103,6 +103,7 @@ where
|
|||||||
|
|
||||||
// transfer spi data
|
// transfer spi data
|
||||||
// Be careful!! Linux has a default limit of 4096 bytes per spi transfer
|
// Be careful!! Linux has a default limit of 4096 bytes per spi transfer
|
||||||
|
// see https://raspberrypi.stackexchange.com/questions/65595/spi-transfer-fails-with-buffer-size-greater-than-4096
|
||||||
if cfg!(target_os = "linux") {
|
if cfg!(target_os = "linux") {
|
||||||
for data_chunk in data.chunks(4096) {
|
for data_chunk in data.chunks(4096) {
|
||||||
spi.write(data_chunk)?;
|
spi.write(data_chunk)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user