Skip to content

Commit

Permalink
fmt: debug message too long
Browse files Browse the repository at this point in the history
  • Loading branch information
zpg6 committed Dec 30, 2024
1 parent d344c91 commit a2153e7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/src/bin/uart_interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ fn handler() {
esp_println::print!("\nBREAK");
}
if serial.interrupts().contains(UartInterrupt::RxFifoFull) {
esp_println::print!(
" {:02X}",
serial
.read_byte()
.expect("Failed to read byte but FIFO is full")
);
esp_println::print!(" {:02X}", serial.read_byte().expect("Read byte failed"));
}

serial.clear_interrupts(UartInterrupt::RxBreakDetected | UartInterrupt::RxFifoFull);
Expand Down

0 comments on commit a2153e7

Please sign in to comment.