I believe the code in CBUSbase::checkCANenum has a slight error
at line 1025, there's
selected_id = ((i * 16) + b);
The array is actually of bytes, so the variable i should be multiplied by 8, not 16
selected_id = ((i * 8) + b);
As the array is 16 elements, I see why this happened (I had to look several times before I saw it)
I've shamelessly copied this bit of code, and wondered why the selected CANID was much higher than expected
I believe the code in CBUSbase::checkCANenum has a slight error
at line 1025, there's
selected_id = ((i * 16) + b);The array is actually of bytes, so the variable i should be multiplied by 8, not 16
selected_id = ((i * 8) + b);As the array is 16 elements, I see why this happened (I had to look several times before I saw it)
I've shamelessly copied this bit of code, and wondered why the selected CANID was much higher than expected