diff --git a/examples/embassy/Cargo.toml b/examples/embassy/Cargo.toml index 3589c24..df83050 100644 --- a/examples/embassy/Cargo.toml +++ b/examples/embassy/Cargo.toml @@ -27,7 +27,7 @@ embassy-executor = { version = "0.7", features = [ "executor-interrupt" ]} -va108xx-hal = "0.9" +va108xx-hal = { version = "0.9", path = "../../va108xx-hal" } va108xx-embassy = "0.1" [features] diff --git a/va108xx-embassy/Cargo.toml b/va108xx-embassy/Cargo.toml index 1b519b5..a2b01f6 100644 --- a/va108xx-embassy/Cargo.toml +++ b/va108xx-embassy/Cargo.toml @@ -20,7 +20,7 @@ embassy-time-queue-utils = "0.1" once_cell = { version = "1", default-features = false, features = ["critical-section"] } -va108xx-hal = "0.9" +va108xx-hal = { version = "0.9", path = "../va108xx-hal" } [target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies] portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] } diff --git a/va108xx-hal/src/gpio/asynch.rs b/va108xx-hal/src/gpio/asynch.rs index 40ccd14..0de3b55 100644 --- a/va108xx-hal/src/gpio/asynch.rs +++ b/va108xx-hal/src/gpio/asynch.rs @@ -71,10 +71,10 @@ fn handle_interrupt_for_gpio_and_port(mut irq_enb: u32, edge_status: u32, pin_ba if edge_status & bit_mask != 0 { EDGE_DETECTION[pin_base_offset + bit_pos] .store(true, core::sync::atomic::Ordering::Relaxed); - } - // Clear the processed bit - irq_enb &= !bit_mask; + // Clear the processed bit + irq_enb &= !bit_mask; + } } }