Skip to content

Commit 415d021

Browse files
authored
fix interrupts (#516)
1 parent 79caf0d commit 415d021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

port/espressif/esp/src/cpus/esp_riscv_common.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ fn _update_priority() linksection(".trap") callconv(.c) u32 {
612612

613613
if (@intFromEnum(priority) < 15) {
614614
// allow higher priority interrupts to preempt this one
615-
interrupt.set_priority_threshold(priority);
615+
interrupt.set_priority_threshold(@enumFromInt(@intFromEnum(priority) + 1));
616616
interrupt.enable_interrupts();
617617
}
618618
}

0 commit comments

Comments
 (0)