FluenTech / embedded-time

Time(ing) library (Instant/Duration/Clock/Timer/Period/Frequency) for bare-metal embedded systems
Apache License 2.0
87 stars 17 forks source link

Fixed generic comparison where the destination integer is larger #122

Closed korken89 closed 2 years ago

korken89 commented 2 years ago

I found an issue in when comparing durations where the Generic is of u64 and eg Milliseconds is u32 would fail.

This fixes that. Could we include this in the 0.13 release @PTaylor-us ? We found that users hit this easily in RTIC.

korken89 commented 2 years ago

I now also fixed so the .into() that was required before is no longer needed :tada: