From 9db8a2340143ce597bff1cb37d631b5ec9429c33 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:01:15 +0100 Subject: [PATCH] Fix Shelly Pro detection when using buttons (#16733) --- tasmota/tasmota_xdrv_driver/xdrv_88_esp32_shelly_pro.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_88_esp32_shelly_pro.ino b/tasmota/tasmota_xdrv_driver/xdrv_88_esp32_shelly_pro.ino index 60f0f0a88..096f46e60 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_88_esp32_shelly_pro.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_88_esp32_shelly_pro.ino @@ -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 }