mirror of https://github.com/arendst/Tasmota.git
ESP8266 removed SPI check for valid SPI Chip Select (#21393)
This commit is contained in:
parent
2f3663b8aa
commit
584329a6c0
|
@ -37,6 +37,7 @@ All notable changes to this project will be documented in this file.
|
|||
- TLS Letsencrypt replace R3 CA with long-term ISRG_Root_X1 CA, which works with R3 and R10-R14 (#21352)
|
||||
- GPIOViewer from v1.5.0 to v1.5.2
|
||||
- ESP32 Core3 platform update from 2024.05.10 to 2024.05.11 (#21381)
|
||||
- ESP8266 removed SPI check for valid SPI Chip Select (#21393)
|
||||
|
||||
### Fixed
|
||||
- HASPmota `align` attribute and expand PNG cache (#21228)
|
||||
|
|
|
@ -185,6 +185,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
|
|||
- Refactor I2S [#21291](https://github.com/arendst/Tasmota/issues/21291)
|
||||
- Zigbee startup event triggered after plugins are loaded [#21320](https://github.com/arendst/Tasmota/issues/21320)
|
||||
- Refactor Tensorflow [#21327](https://github.com/arendst/Tasmota/issues/21327)
|
||||
- ESP8266 removed SPI check for valid SPI Chip Select [#21393](https://github.com/arendst/Tasmota/issues/21393)
|
||||
- ESP32 refactored Wifi for ESP32 Core3 release [#21106](https://github.com/arendst/Tasmota/issues/21106)
|
||||
- ESP32 WiFi phy modes 11n and 11ax represented as HT20, HT40 and HE20 [#19350](https://github.com/arendst/Tasmota/issues/19350)
|
||||
- berry.exe (pre-compiled for Windows) updated to latest Berry patches [#21024](https://github.com/arendst/Tasmota/issues/21024)
|
||||
|
|
|
@ -2121,6 +2121,7 @@ void GpioInit(void)
|
|||
uint32_t spi_mosi = (14 == Pin(GPIO_SPI_CLK)) && (13 == Pin(GPIO_SPI_MOSI)) ? SPI_MOSI : SPI_NONE;
|
||||
uint32_t spi_miso = (14 == Pin(GPIO_SPI_CLK)) && (12 == Pin(GPIO_SPI_MISO)) ? SPI_MISO : SPI_NONE;
|
||||
TasmotaGlobal.spi_enabled = spi_mosi + spi_miso;
|
||||
/*
|
||||
if (!TasmotaGlobal.spi_enabled) {
|
||||
bool valid_cs = (ValidSpiPinUsed(GPIO_SPI_CS) ||
|
||||
ValidSpiPinUsed(GPIO_RC522_CS) ||
|
||||
|
@ -2141,6 +2142,7 @@ void GpioInit(void)
|
|||
// If SPI_CS and/or SPI_DC is used they must be valid
|
||||
TasmotaGlobal.spi_enabled = (valid_cs) ? SPI_MOSI_MISO : SPI_NONE;
|
||||
}
|
||||
*/
|
||||
if (TasmotaGlobal.spi_enabled) {
|
||||
TasmotaGlobal.my_module.io[12] = AGPIO(GPIO_SPI_MISO);
|
||||
SetPin(12, AGPIO(GPIO_SPI_MISO));
|
||||
|
|
Loading…
Reference in New Issue