Skip to content

Commit

Permalink
Fix get_raw_core (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan authored Jan 30, 2024
1 parent fabb631 commit 1b0fc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix embassy-time tick rate not set when using systick as the embassy timebase (#1124)
- Fix `get_raw_core` on Xtensa (#1126)

### Changed

Expand Down
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 1b0fc6b

Please sign in to comment.