-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Issue
Any Ardunio sketch for STM32 CPUs/Boards that tries to #include <Dynamixel2Arduino.h> fails to compile/build.
Reason
actuator.h defines the enum "ControlTableItemIndex" which uses the keyword "LED_GREEN".
For Arduino boards using the STM32 core "LED_GREEN" is defined as macro for the Arduino pin number of the onboard LED. In case of Nucleo-64 / Nucleo F446RE it simply evaluates to 200 and hence cannot be (re)used as a keyword in an enum.
Solution
- Adding
#undef LED_GREENright in front of the definition of ControlTableItemIndex in actuator.h (might have side effects) - Or rename keyword to e.g. "LED_GREE" in actuator.h, actuator.cpp and keywords.txt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request