vedderb / bldc

The VESC motor control firmware
2.09k stars 1.31k forks source link

Add define to disable LEDs #677

Open Tomblarom opened 7 months ago

Tomblarom commented 7 months ago

I added a define to disable the use of LEDs if the hardware misses them. In my case there where none, in order to use all GPIOs as external inputs. I took CAN_ENABLE as example. Obviously by default LED_ENABLE defined as 1 and only set to 0, if HW_HAS_NO_LED is set in the hwconf/hw_xx.h.

And I deleted a duplicate of #include "ledpwm.h" in the main.c file.