Skip to content

Commit

Permalink
Fixed f4 uart typo
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Jan 31, 2024
1 parent f4d2c37 commit a3fe02b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/usart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ where
while self.regs.sr.read().txe().bit_is_clear() {
i += 1;
if i >= MAX_ITERS {
return Err(UartUartError::Hardware);
return Err(UartError::Hardware);
}
}
self.regs
Expand All @@ -434,7 +434,7 @@ where
while self.regs.sr.read().tc().bit_is_clear() {
i += 1;
if i >= MAX_ITERS {
return Err(UartUartError::Hardware);
return Err(UartError::Hardware);
}
}
}
Expand Down Expand Up @@ -490,7 +490,7 @@ where
while self.regs.sr.read().rxne().bit_is_clear() {
i_ += 1;
if i_ >= MAX_ITERS {
return Err(UartUartError::Hardware);
return Err(UartError::Hardware);
}
}
buf[i] = self.regs.dr.read().dr().bits() as u8;
Expand Down

0 comments on commit a3fe02b

Please sign in to comment.