mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
SPI: writePattern() should not call setDataBits(0) (#8636)
resolves #8635
This commit is contained in:
parent
06f34ed566
commit
d44c3f42a3
@ -515,9 +515,11 @@ void SPIClass::writePattern(const uint8_t * data, uint8_t size, uint32_t repeat)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//End orig
|
//End orig
|
||||||
setDataBits(repeatRem * 8);
|
if (repeatRem) {
|
||||||
SPI1CMD |= SPIBUSY;
|
setDataBits(repeatRem * 8);
|
||||||
while(SPI1CMD & SPIBUSY) {}
|
SPI1CMD |= SPIBUSY;
|
||||||
|
while(SPI1CMD & SPIBUSY) {}
|
||||||
|
}
|
||||||
|
|
||||||
SPI1U = SPIUMOSI | SPIUDUPLEX | SPIUSSE;
|
SPI1U = SPIUMOSI | SPIUDUPLEX | SPIUSSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user