From 152ca635294768b07536e89fa232d6fb0c1b3249 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sun, 28 Mar 2021 17:33:53 +0200 Subject: [PATCH] Possible fix for HW SPI on ESP32. --- wled00/bus_wrapper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wled00/bus_wrapper.h b/wled00/bus_wrapper.h index d588586f7..976d109a6 100644 --- a/wled00/bus_wrapper.h +++ b/wled00/bus_wrapper.h @@ -848,7 +848,8 @@ class PolyBus { #ifdef ESP8266 if (pins[0] == P_8266_HS_MOSI && pins[1] == P_8266_HS_CLK) isHSPI = true; #else - if(!num) isHSPI = true; // temporary hack to limit use of hardware SPI to a single SPI peripheral: only allow ESP32 hardware serial on segment 0 + // temporary hack to limit use of hardware SPI to a single SPI peripheral: only allow ESP32 hardware serial on segment 0 + if (!num && pins[0] == P_32_HS_MOSI && pins[1] == P_32_HS_CLK) isHSPI = true; #endif uint8_t t = I_NONE; switch (busType) {