Skip to content

Commit 12b9310

Browse files
committed
Cleanup, comment
1 parent 5ed3af2 commit 12b9310

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/gpio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ macro_rules! gpio {
509509

510510
// set pin high/low before activating, to prevent
511511
// spurious signals (e.g. LED flash)
512+
// TODO: I still see a flash of LED using this order
512513
match initial_state {
513514
State::High => res.set_high(),
514515
State::Low => res.set_low(),

src/pwm.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ macro_rules! hal {
124124
{
125125
apb.enr().modify(|_, w| w.$timXen().set_bit());
126126
apb.rstr().modify(|_, w| w.$timXrst().set_bit());
127-
// commented line is probably FUD
128-
// while apb.rstr().read().$timXrst().bit_is_clear() {}
129127
apb.rstr().modify(|_, w| w.$timXrst().clear_bit());
130128

131129
if PINS::C1 {

0 commit comments

Comments
 (0)