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));