mirror of https://github.com/arendst/Tasmota.git
Fix IRsend GPIO init
This commit is contained in:
parent
ac4d7c1761
commit
c6a5cabc72
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*********************************************************************************************\
|
||||
|
|
Loading…
Reference in New Issue