Skip to content

Commit

Permalink
Remove Debug2Format from esp-hal
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 18, 2024
1 parent c0a9934 commit dd0e585
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions esp-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,28 +248,13 @@ mod soc;
#[cfg(xtensa)]
#[no_mangle]
extern "C" fn EspDefaultHandler(_level: u32, _interrupt: peripherals::Interrupt) {
#[cfg(not(feature = "defmt"))]
panic!("Unhandled level {} interrupt: {:?}", _level, _interrupt);

#[cfg(feature = "defmt")]
panic!(
"Unhandled level {} interrupt: {:?}",
_level,
defmt::Debug2Format(&_interrupt)
);
}

#[cfg(riscv)]
#[no_mangle]
extern "C" fn EspDefaultHandler(_interrupt: peripherals::Interrupt) {
#[cfg(not(feature = "defmt"))]
panic!("Unhandled interrupt: {:?}", _interrupt);

#[cfg(feature = "defmt")]
panic!(
"Unhandled interrupt: {:?}",
defmt::Debug2Format(&_interrupt)
);
}

/// A marker trait for initializing drivers in a specific mode.
Expand Down

0 comments on commit dd0e585

Please sign in to comment.