Skip to content

Commit

Permalink
Adding break to clear buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbaker committed Jan 17, 2019
1 parent eabc239 commit 5d4b09b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/11-usart/my-solution.md
Expand Up @@ -40,6 +40,8 @@ fn main() -> ! {
while usart1.isr.read().txe().bit_is_clear() {}
usart1.tdr.write(|w| w.tdr().bits(u16::from(*byte)));
}

break;
}
}
}
Expand Down

0 comments on commit 5d4b09b

Please sign in to comment.