Skip to content

Commit dfc2c8c

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Fix non-nRF9160 build.
1 parent 326948f commit dfc2c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf52-hal-common/src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ where
5252

5353
/// Return the current value of the counter, by capturing to CC[1].
5454
pub fn read(&self) -> u32 {
55-
self.0.tasks_capture[1].write(|w| w.tasks_capture().trigger());
55+
self.0.tasks_capture[1].write(|w| unsafe { w.bits(1) });
5656
self.0.cc[1].read().bits()
5757
}
5858

0 commit comments

Comments
 (0)