mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-04 18:03:20 +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
|
||||
setDataBits(repeatRem * 8);
|
||||
SPI1CMD |= SPIBUSY;
|
||||
while(SPI1CMD & SPIBUSY) {}
|
||||
if (repeatRem) {
|
||||
setDataBits(repeatRem * 8);
|
||||
SPI1CMD |= SPIBUSY;
|
||||
while(SPI1CMD & SPIBUSY) {}
|
||||
}
|
||||
|
||||
SPI1U = SPIUMOSI | SPIUDUPLEX | SPIUSSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user