ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
933 stars 401 forks source link

canmatrix: fix the factor could be zero #776

Closed pempem98 closed 8 months ago

pempem98 commented 8 months ago

The factor of the signal could be zero and it makes an other error with dividing by zero so when the factor equals zero, we should set it to default value (factor=1)

pempem98 commented 8 months ago

This PR is for https://github.com/ebroecker/canmatrix/issues/773 and https://github.com/ebroecker/canmatrix/issues/766

ebroecker commented 8 months ago

Thanks a lot!