mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
LED strip issues #2501
This commit is contained in:
parent
b8317f53c6
commit
e0e798a8e4
3 changed files with 3 additions and 4 deletions
|
@ -87,7 +87,7 @@ void setStripColors(const hsvColor_t *colors)
|
|||
|
||||
void ws2811LedStripInit(ioTag_t ioTag)
|
||||
{
|
||||
memset(&ledStripDMABuffer, 0, WS2811_DMA_BUFFER_SIZE);
|
||||
memset(ledStripDMABuffer, 0, sizeof(ledStripDMABuffer));
|
||||
ws2811LedStripHardwareInit(ioTag);
|
||||
|
||||
const hsvColor_t hsv_white = { 0, 255, 255};
|
||||
|
|
|
@ -798,7 +798,7 @@ static void applyLarsonScannerLayer(bool updateNow, timeUs_t *timer)
|
|||
int scannerLedIndex = 0;
|
||||
for (unsigned i = 0; i < ledCounts.count; i++) {
|
||||
|
||||
const ledConfig_t *ledConfig = &ledConfigs[i];
|
||||
const ledConfig_t *ledConfig = &ledStripConfig()->ledConfigs[i];
|
||||
|
||||
if (ledGetOverlayBit(ledConfig, LED_OVERLAY_LARSON_SCANNER)) {
|
||||
hsvColor_t ledColor;
|
||||
|
@ -827,7 +827,7 @@ static void applyLedBlinkLayer(bool updateNow, timeUs_t *timer)
|
|||
bool ledOn = (blinkMask & 1); // b_b_____...
|
||||
if (!ledOn) {
|
||||
for (int i = 0; i < ledCounts.count; ++i) {
|
||||
const ledConfig_t *ledConfig = &ledConfigs[i];
|
||||
const ledConfig_t *ledConfig = &ledStripConfig()->ledConfigs[i];
|
||||
|
||||
if (ledGetOverlayBit(ledConfig, LED_OVERLAY_BLINK) ||
|
||||
(ledGetOverlayBit(ledConfig, LED_OVERLAY_LANDING_FLASH) && scaledThrottle < 50)) {
|
||||
|
|
|
@ -150,7 +150,6 @@ typedef struct ledStripConfig_s {
|
|||
|
||||
PG_DECLARE(ledStripConfig_t, ledStripConfig);
|
||||
|
||||
ledConfig_t *ledConfigs;
|
||||
hsvColor_t *colors;
|
||||
const modeColorIndexes_t *modeColors;
|
||||
specialColorIndexes_t specialColors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue