Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Add Custom halt feature #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

t-moe
Copy link

@t-moe t-moe commented May 15, 2024

This allows me to implement esp-rs/esp-hal#1586 or do custom stuff like flushing logs etc...

I know that for using esp-backtrace in an production environment, we probably want to refactor/extend in a different direction, but at least this allows for hacking stuff during development without duplicating and adapting the entire panic handler.

@t-moe
Copy link
Author

t-moe commented May 15, 2024

CI failures are probably not related to this PR?

@bjoernQ
Copy link
Contributor

bjoernQ commented May 15, 2024

CI failures are caused by a new Clippy lint - I think we should just ignore it like we do in esp-hal, too.

Just add this: https://github.com/esp-rs/esp-hal/blob/68628fc0086934c67d34156f3cc45aca81bf99d0/esp-hal/Cargo.toml#L223-L224

Thanks!

src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks! This might be very useful. Feel free to ignore that one nit-pick

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants