Add an option for ignoring wrong checksum
I want to add an option for not raising an exception when your try to parse with wrong checksum
Coverage remained the same at 98.057% when pulling bd68950bbb804cf4695087a6e9e0f43966f681e4 on shaharrose:feature/parse-ignore-wrong-checksum into c4fc66c6a13dd85ad862b15c516245af6e571456 on Knio:master.
Why not use the already existing check parameter (still fixing the logic)?
Why not use the already existing
checkparameter (still fixing the logic)?
@xOneca Because the check requires the NMEA sentence to have checksum in it, and I feel that allowing wrong checksum needs a parameter of its own
Allowing wrong checksum is not checking it, isn't it?
I mean, it seems to me that the original check parameter should be doing what you want to do with the new parameter, but it isn't doing it. I would make check raise an exception only if there's no checksum or the check is wrong.
@xOneca I think that the check argument is really weird as well, but I think that @Knio should agree to the change of the check purpose
Sure.
I think this is fixed in a pull request I just made: https://github.com/Knio/pynmea2/pull/115
It feels to me more correct the fix in 91204afa from @np-8.