autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
795 stars 279 forks source link

Breaks millis #77

Closed jsdevel closed 2 years ago

jsdevel commented 2 years ago

When I have the board connected to either an Uno or mega millis stops working i.e. instead of returning an unsigned long it returns jibberish. Any idea what would cause this? If I disconnect the board yet leave my code the same millis starts working again and returns the correct number of milliseconds.

jsdevel commented 2 years ago

So, this happened because setBitrate was failing. i'll probably follow up with a PR to update the README with a note on setBitrate and the valid can speed / clock speed configurations.