Skip to content

Commit

Permalink
Fix universal display software spi regression from yesterday
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Jul 14, 2024
1 parent 3d34097 commit a18be12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasmota/tasmota_xdsp_display/xdsp_17_universal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a18be12

Please sign in to comment.