-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When spn_start is a range cut_data is incorrectly retuned as None #25
Comments
Thanks for bringing this up, @s5y3XZpGvQPApqR . Before the changes you propose the Front Axle Speed is missing from the description as you say
Then with your changes we get some front axle speed as described. Thank you for the testcase here!
The problem was introduced by me when I ported @j4l-Shvn's code in PR #6. Their code was fine. I didn't use I really appreciate you pointing out this problem, @s5y3XZpGvQPApqR . It also led me to create issues #28 and #27 during testing. |
fix issue #25 by using append the right way...
if spn_start is a list e.g. [0, 8] requiring the first two bytes then the cut_data is incorrectly returned at None
Here's what I expect:
in log.txt
(1621774359.366587) can0 14FEBF80#1010010203040506
The first entry Front Axle Speed 16 kph is not returned in the current version. rsplit and lsplit are not correct and the cut_data assignment doesn't work even if they are 0 and 16.
This works for me but I'm not sure if this breaks other functionality
The text was updated successfully, but these errors were encountered: