Try to fix defmt in DefaultHandler (#813)

This commit is contained in:
Dániel Buga 2023-09-27 17:32:59 +02:00 committed by GitHub
parent 94cd593a45
commit ae160d66c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,15 @@ mod soc;
#[no_mangle]
extern "C" fn EspDefaultHandler(_level: u32, _interrupt: peripherals::Interrupt) {
#[cfg(feature = "log")]
warn!("Unhandled level {} interrupt: {:?}", _level, _interrupt);
#[cfg(feature = "defmt")]
warn!(
"Unhandled level {} interrupt: {:?}",
_level,
defmt::Debug2Format(&_interrupt)
);
}
#[cfg(xtensa)]