Skip to content

Commit 249d684

Browse files
committed
Cleanup serial
1 parent c93776a commit 249d684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serial.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ macro_rules! usart {
449449

450450
impl<Tx, Rx> Serial<$USARTX, (Tx, Rx)> {
451451
/// Splits the `Serial` abstraction into a transmitter and a receiver half
452-
pub fn split(self) -> (Tx<$USARTX>, Rx<$USARTX>) {
452+
pub fn split(self) -> (split::Tx<$USARTX>, split::Rx<$USARTX>) {
453453
// NOTE(unsafe): This essentially duplicates the USART peripheral
454454
//
455455
// As RX and TX both do have direct access to the peripheral,
@@ -465,7 +465,7 @@ macro_rules! usart {
465465
pac::Peripherals::steal().$USARTX,
466466
)
467467
};
468-
(Tx::new(tx), Rx::new(rx))
468+
(split::Tx::new(tx), split::Rx::new(rx))
469469
}
470470
}
471471
)+

0 commit comments

Comments
 (0)