Fix GPIO # callback parameter (#880)

Fixes #879
This commit is contained in:
Earle F. Philhower, III 2022-06-24 01:58:36 -07:00 committed by GitHub
parent 4c49427bf3
commit e7267f99fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ static void gpio_default_irq_handler(void) {
if (events && !(raw_irq_mask[core] & (1u << i))) { if (events && !(raw_irq_mask[core] & (1u << i))) {
gpio_acknowledge_irq(i, events); gpio_acknowledge_irq(i, events);
if (callback) { if (callback) {
callback(gpio, events); callback(i, events);
} }
} }
events8 >>= 4; events8 >>= 4;