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 3d24df2 commit a008b31Copy full SHA for a008b31
src/timer.rs
@@ -568,7 +568,7 @@ fn test(tim: pac::TIM16) {
568
569
struct BasicTimer<T> {
570
_ptr: usize,
571
- real_timer: PhantomData<T>,
+ real_timer: T,
572
}
573
574
impl<T> Deref for BasicTimer<T> {
@@ -584,7 +584,7 @@ impl From<pac::TIM6> for BasicTimer<pac::TIM6> {
584
fn from(tim: pac::TIM6) -> Self {
585
Self {
586
_ptr: unsafe { pac::TIM6::ptr() as _ },
587
- real_timer: PhantomData,
+ real_timer: tim,
588
589
590
0 commit comments