You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development, a panic handler that actually shows the panic message is very important. In practice, this usually means printing the message to serial/UART, as demonstrated in this example: uno-panic.rs
It would be nice to include a sane-default implementation of such a panic handler somewhere in our crates.
Some thoughts:
As a first step, just adding it to arduino-hal would serve most users.
It should be opt-in via a crate feature flag, so people can replace it with their own handler easily.
It should not modify the serial settings that were configured by the user. I think the best solution would be to initialize the UART peripheral without changing any of the settings (needs additional support in avr-hal-generic).
At some point in the future, integration with the USB-serial for ATmega32U4, etc. should be considered...
The text was updated successfully, but these errors were encountered:
During development, a panic handler that actually shows the panic message is very important. In practice, this usually means printing the message to serial/UART, as demonstrated in this example:
uno-panic.rs
It would be nice to include a sane-default implementation of such a panic handler somewhere in our crates.
Some thoughts:
arduino-hal
would serve most users.arduino_hal::default_serial!()
avr-hal-generic
).ATmega32U4
, etc. should be considered...The text was updated successfully, but these errors were encountered: