From e47c8710fe428b6077b72b32781ac1f5f3079f4a Mon Sep 17 00:00:00 2001 From: bjeram Date: Mon, 16 Dec 2019 16:55:52 +0100 Subject: [PATCH] setting pinMode for the pin used by RFRecv to INPUT --- tasmota/xdrv_17_rcswitch.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_17_rcswitch.ino b/tasmota/xdrv_17_rcswitch.ino index dfe5dc66a..156535876 100644 --- a/tasmota/xdrv_17_rcswitch.ino +++ b/tasmota/xdrv_17_rcswitch.ino @@ -85,6 +85,7 @@ void RfInit(void) mySwitch.enableTransmit(pin[GPIO_RFSEND]); } if (pin[GPIO_RFRECV] < 99) { + pinMode( pin[GPIO_RFRECV], INPUT); mySwitch.enableReceive(pin[GPIO_RFRECV]); } }