esp32-can-protocol-demo icon indicating copy to clipboard operation
esp32-can-protocol-demo copied to clipboard

Setting 33.3kbps? I can set 33, but not 33.3 due to the decimal (only Integers allowed)

Open dookie454 opened this issue 3 years ago • 1 comments

Hello! This is a GREAT library, I only need help with a couple things to improve it, and not sure how.

In CAN_config.h, I need to set 33.3kbps, but when I add the decimal, I get an "Integer" error, since only integers much be allowed. How so I set to 33.3?

CAN_SPEED_33K3BPS=33.3 this results in Integer error

These are ok though: CAN_SPEED_33K3BPS=33 CAN_SPEED_100KBPS=100

Thanks so much!!!!!

dookie454 avatar Jan 27 '22 16:01 dookie454

hello friend, thank you so much. I am so sad that just some speeds are supported. Please check: https://github.com/nhatuan84/esp32-can-protocol-demo/blob/master/src/CAN_config.h

nhatuan84 avatar Jan 31 '22 11:01 nhatuan84