Merge pull request #16139 from s-hadinger/irsend_multi_fix

Fix IRsend GPIO init
This commit is contained in:
s-hadinger 2022-08-02 23:45:06 +02:00 committed by GitHub
commit e91a50c9bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -839,6 +839,13 @@ void IrRemoteCmndResponse(uint32_t error)
void IrInit(void) { void IrInit(void) {
ir_send_active = PinUsed(GPIO_IRSEND, GPIO_ANY); ir_send_active = PinUsed(GPIO_IRSEND, GPIO_ANY);
ir_recv_active = PinUsed(GPIO_IRRECV, 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);
}
}
}
} }
/*********************************************************************************************\ /*********************************************************************************************\