drivers: gpio_nrfx: Pass only pins associated with handler
When notifying the handler that GPIO interrupt has occurred pass only pins that are associated with this handler. Fixes: #24634 Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
This commit is contained in:
parent
1ca4aedc35
commit
ed5e247f63
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ static inline void fire_callbacks(struct device *port, u32_t pins)
|
|||
*/
|
||||
if ((cb->pin_mask & pins) & data->int_en) {
|
||||
__ASSERT(cb->handler, "No callback handler!");
|
||||
cb->handler(port, cb, pins);
|
||||
cb->handler(port, cb, cb->pin_mask & pins);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue