diff --git a/due_can.cpp b/due_can.cpp index d47272e..79a402d 100644 --- a/due_can.cpp +++ b/due_can.cpp @@ -140,9 +140,9 @@ uint32_t CANRaw::init(uint32_t ul_baudrate) uint32_t ul_flag; uint32_t ul_tick; - if (busSpeed == ul_baudrate) return ul_baudrate; //no need to reinitialize so just return that it was a success - else if (busSpeed != 0) return 0xFFFFFFFF; //ERROR! The bus was already initialized and you're trying to change it! Use set_baudrate if you really want to do that. - + //there used to be code here to cause this function to not run if the hardware is already initialized. But, + //it can be helpful to reinitialize. For instance, if the bus rate was set improperly you might need to + //go back through this code to reset the hardware. //initialize all function pointers to null for (int i = 0; i < 9; i++) cbCANFrame[i] = 0; diff --git a/library.properties b/library.properties index 2e1533b..0338298 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=due_can -version=2.0.0 +version=2.0.1 author=Collin Kidder , Thibaut Viard, Wilfredo Molina maintainer=Collin Kidder sentence=Allows for CAN bus communications with the Arduino Due