Skip to content

Note regarding copy/pasting of LED-Layout #3

@Polarfuchs0x137

Description

@Polarfuchs0x137

I ran into some problems as some animations included with QMK make use of the HAS_ANY_FLAGS() macro to see if the flags of the current LED and those in the params struct overlap. If they don't, the current LED is skipped.

From main.c: effect_params_t params = {led_colors, true, 1, 0};

params.flags is currently initialized with the value 1, corresponding to LED_FLAG_MODIFIER.

If you thus paste your g_led_config struct and it includes keys with this flag not set, they will be skipped by all animations checking for this.

Fix: Either set all keyflags in your layout to 1 or change the value params.flagsgets initialized to to LED_FLAG_ALL/0xFF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions