Skip to content

Commit

Permalink
fix: remove unneeded assert
Browse files Browse the repository at this point in the history
  • Loading branch information
zpg6 committed Dec 21, 2024
1 parent 3205778 commit e064484
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions esp-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2644,10 +2644,6 @@ impl Info {

fn change_tx_idle(&self, idle_num: u16) -> Result<(), ConfigError> {
// Bits 10:19 => 10-bit register has max value of 1023.
// assert!(
// idle_num <= 0x3FF,
// "Invalid idle_num, 10-bit register has max value of 1023."
// );
if idle_num > 0x3FF {
return Err(ConfigError::UnsupportedIdleNum);
}
Expand Down

0 comments on commit e064484

Please sign in to comment.