mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Fix assert in gpio_set_irq_enabled (#1864)
* Fix assert in gpio_set_irq_enabled
This commit is contained in:
parent
7dc10d7aad
commit
aa8cf17732
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ void gpio_set_irq_enabled(uint gpio, uint32_t events, bool enabled) {
|
|||
// or callback should already be set (raw or using gpio_set_irq_callback)
|
||||
// this protects against enabling the interrupt without callback set
|
||||
assert(!enabled
|
||||
|| (raw_irq_mask[get_core_num()] & (1u<<gpio))
|
||||
|| (raw_irq_mask[get_core_num()] & (1ull<<gpio))
|
||||
|| callbacks[get_core_num()]);
|
||||
|
||||
// Separate mask/force/status per-core, so check which core called, and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue