-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi. Thank you for providing this implementation!
I am trying to use the library to decode a DCF77 signal. Most of the time the library works as it should. However sometimes I'm running into a panic;
thread 'main' panicked at 'attempt to shift left with overflow', C:\Users\[user]\.cargo\registry\src\github.com-1ecc6299db9ec823\dcf77-0.1.0\src\lib.rs:539:38
It seems that datapos is sometimes getting larger than 59 when the end of a minute is missed due to a bad signal. Before crashing calling seconds() returns 64. Could we maybe reset datapos to 0 when it's getting above 59?
Best regards,
Beni
Metadata
Metadata
Assignees
Labels
No labels