We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9d667 commit 956c469Copy full SHA for 956c469
src/timer.rs
@@ -597,7 +597,7 @@ fn test(tim: pac::TIM16) {
597
598
struct BasicTimer<T> {
599
_ptr: usize,
600
- real_timer: PhantomData<T>,
+ real_timer: T,
601
}
602
603
impl<T> Deref for BasicTimer<T> {
@@ -613,7 +613,7 @@ impl From<pac::TIM6> for BasicTimer<pac::TIM6> {
613
fn from(tim: pac::TIM6) -> Self {
614
Self {
615
_ptr: unsafe { pac::TIM6::ptr() as _ },
616
- real_timer: PhantomData,
+ real_timer: tim,
617
618
619
0 commit comments