Skip to content

Commit b658b23

Browse files
authored
Fix timer stop (#9)
1 parent 1f7a966 commit b658b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ macro_rules! hrtim_timer {
145145
// Stop counter
146146
// SAFETY: Since we hold _hr_control there is no risk for a race condition
147147
let master = unsafe { &*HRTIM_MASTER::ptr() };
148-
master.cr().modify(|_r, w| { w.$tXcen().set_bit() });
148+
master.cr().modify(|_r, w| { w.$tXcen().clear_bit() });
149149
}
150150

151151
/// Stop timer and reset counter

0 commit comments

Comments
 (0)