Turn "log an error, then loop forever" behaviors into actual panics!. A panic indicates an unrecoverable error. Panicking is useful in demos, where we want to catch programming errors. However, we'll need to be careful with panicking in final system.
When a panic happens, we emit an error-level log message, then blink SOS in morse code on the LED. If you ever see that LED pattern, something is wrong. See the teensy4-panic docs for more information.
Turn "log an error, then loop forever" behaviors into actual
panics!
. A panic indicates an unrecoverable error. Panicking is useful in demos, where we want to catch programming errors. However, we'll need to be careful with panicking in final system.When a panic happens, we emit an error-level log message, then blink SOS in morse code on the LED. If you ever see that LED pattern, something is wrong. See the
teensy4-panic
docs for more information.