Fix IRsend GPIO init

This commit is contained in:
Stephan Hadinger 2022-08-02 23:32:23 +02:00
parent ac4d7c1761
commit c6a5cabc72
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}
}
}
}
/*********************************************************************************************\