From a18be12b77056e2d381123f1465dfed55ba31824 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:01:34 +0200 Subject: [PATCH] Fix universal display software spi regression from yesterday --- tasmota/tasmota_xdsp_display/xdsp_17_universal.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino b/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino index 22a9db511..b56bf6d47 100644 --- a/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino +++ b/tasmota/tasmota_xdsp_display/xdsp_17_universal.ino @@ -215,13 +215,13 @@ Renderer *Init_uDisplay(const char *desc) { // SPI,*,*,*,*,*,*,*,*,40 cp += 4; // 1,*,*,*,*,*,*,*,80 - uint32_t spi_type = 10; // SPI,* = Software SPI + uint32_t spi_type = 10; // SPI,3 = Software SPI if (isdigit(*cp) && (*cp != '0')) { - spi_type = *cp - '1'; // SPI,1 = 0, SPI,2 = 1, SPI,3 = 2 + spi_type = *cp - '1'; // SPI,1 = 0, SPI,2 = 1 } cp += 2; // *,*,*,*,*,*,*,80 - if (spi_type < 10) { + if (spi_type < 2) { replacepin(&cp, Pin(GPIO_SPI_CS, spi_type)); replacepin(&cp, Pin(GPIO_SPI_CLK, spi_type)); replacepin(&cp, Pin(GPIO_SPI_MOSI, spi_type));