mirror of
https://github.com/arendst/Tasmota.git
synced 2026-07-28 04:15:53 +00:00
fix: Silent failure in pushPixels3DMA (#24520)
This commit is contained in:
@@ -441,7 +441,11 @@ void SPIController::pushPixelsDMA(uint16_t* image, uint32_t len) {
|
||||
}
|
||||
|
||||
void SPIController::pushPixels3DMA(uint8_t* image, uint32_t len) {
|
||||
if ((len == 0) || (!DMA_Enabled)) return;
|
||||
if (len == 0) return;
|
||||
if (!DMA_Enabled) {
|
||||
getSPI()->writeBytes(image, len * 3); // fallback: no DMA, write 3 bytes/pixel via HW SPI
|
||||
return;
|
||||
}
|
||||
|
||||
dmaWait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user