KevinOConnor / can2040

Software CAN bus implementation for rp2040 micro-controllers
GNU General Public License v3.0
636 stars 63 forks source link

Can can2040_start be called more than once? #52

Closed jhifte closed 1 month ago

jhifte commented 1 month ago

If I want to change the baudrate after calling can2040_start the first time, is it safe to call the function a second time, with different parameters? Or should I stop the statemachine or even call can2040_setup again before that?

KevinOConnor commented 1 month ago

It is valid to call can2040_start() after can2040_stop() - see the documentation at: https://github.com/KevinOConnor/can2040/blob/master/docs/API.md#can2040_stop

-Kevin

jhifte commented 1 month ago

Thanks, I knew it had to be something I overlooked.