mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Updates to addressable LED (#2098)
Only PWM Headers are supported, so enforce that. Also fixes some init checks and init order checks.
This commit is contained in:
committed by
Peter Johnson
parent
1894219ef6
commit
6f6c6da9f5
@@ -94,6 +94,10 @@
|
||||
#define HAL_HANDLE_ERROR_MESSAGE \
|
||||
"HAL: A handle parameter was passed incorrectly"
|
||||
|
||||
#define HAL_LED_CHANNEL_ERROR -1099
|
||||
#define HAL_LED_CHANNEL_ERROR_MESSAGE \
|
||||
"HAL: Addressable LEDs only supported on PWM Headers, not MXP or DIO"
|
||||
|
||||
#define HAL_INVALID_DMA_ADDITION -1102
|
||||
#define HAL_INVALID_DMA_ADDITION_MESSAGE \
|
||||
"HAL_AddDMA() only works before HAL_StartDMA()"
|
||||
|
||||
Reference in New Issue
Block a user