tommag / TMC5160_Arduino

Arduino library for Trinamic TMC5160 stepper motor driver
MIT License
69 stars 24 forks source link

type_traits not found during compile #1

Closed phodgers closed 3 years ago

phodgers commented 3 years ago

Hello,

I tried to compile the SPI example on Arduino 1.8.13 (Windows Install) but found an issue with type_traits not being found. I installed ArxTypeTraits from Arduino Library and referenced that in bitfield.h and it then compiled okay.

tommag commented 3 years ago

Thanks for reporting ! I should probably include ArxTypeTraits directly.

matt-lamport commented 3 years ago

I encountered the same issue when trying to compile the SPI example on Arduino 1.8.8 on Windows 10. All I had to do was change Line 11 in Bitfield.h from "#include " to "#include "type_traits.h" in order to get it to compile properly.

tommag commented 3 years ago

ArxTypeTraits is now a library dependency for Arduino and PlatformIO.