analogdevicesinc / TMC-API

TRINAMIC's IC API
MIT License
188 stars 83 forks source link

Redefinition of ARRAY_SIZE macro #36

Closed dennismalcorps closed 11 months ago

dennismalcorps commented 11 months ago

Hello everyone,

while working on integrating the TMC2300 into one of our projects, we got a redefinition warning of the above mentioned macro, because our microcontroller sdk implements this too. After a quick glimpse into your code, it turns out there is a missing #ifndev...#endif around ARRAY_SIZE.

trinamic-ASU commented 11 months ago

Thank you for the suggestion and your valuable feedback. We have fixed this issue now.