Skip to content

Commit

Permalink
Fix get_raw_core
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan committed Jan 29, 2024
1 parent fabb631 commit de6db95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn get_raw_core() -> usize {

#[cfg(xtensa)]
fn get_raw_core() -> usize {
xtensa_lx::get_processor_id() as usize & 0x2000
((xtensa_lx::get_processor_id() as usize & 0x2000) != 0) as usize
}

mod critical_section_impl {
Expand Down

0 comments on commit de6db95

Please sign in to comment.