From c6a5cabc72db6dcc77a3eac544daed5085429aa1 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 2 Aug 2022 23:32:23 +0200 Subject: [PATCH] Fix IRsend GPIO init --- tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino b/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino index 0c6da380f..bd757144a 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_05_irremote_full.ino @@ -839,6 +839,13 @@ void IrRemoteCmndResponse(uint32_t error) void IrInit(void) { ir_send_active = PinUsed(GPIO_IRSEND, GPIO_ANY); ir_recv_active = PinUsed(GPIO_IRRECV, GPIO_ANY); + if (ir_send_active) { + for (uint32_t chan = 0; chan < MAX_IRSEND; chan++) { + if (PinUsed(GPIO_IRSEND, chan)) { + IrSendInitGPIO(chan); + } + } + } } /*********************************************************************************************\