mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Fix Shelly Pro detection when using buttons (#16733)
This commit is contained in:
parent
817819e603
commit
9db8a23401
@ -64,9 +64,9 @@ void ShellyProPreInit(void) {
|
||||
PinUsed(GPIO_SPI_CS) &&
|
||||
TasmotaGlobal.gpio_optiona.shelly_pro) { // Option_A7
|
||||
|
||||
if (PinUsed(GPIO_SWT1)) {
|
||||
if (PinUsed(GPIO_SWT1) || PinUsed(GPIO_KEY1)) {
|
||||
TasmotaGlobal.devices_present++; // Shelly Pro 1
|
||||
if (PinUsed(GPIO_SWT1, 1)) {
|
||||
if (PinUsed(GPIO_SWT1, 1) || PinUsed(GPIO_KEY1, 1)) {
|
||||
TasmotaGlobal.devices_present++; // Shelly Pro 2
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user