Skip to content

Commit

Permalink
Fix incorrect search order for rgblight_breathe_table.h that `rgbli…
Browse files Browse the repository at this point in the history
…ght.c` includes. (qmk#11192)

When `rgblight.c` includes `rgblight_breathe_table.h`, the search order should be as follows.

* `keyboards/KEYBOARD/keymaps/USER/rgblight_breathe_table.h`
* `users/USER/rgblight_breathe_table.h`
* `quantum/rgblight_breathe_table.h`

However, the current implementation was wrong, so I fixed it.
  • Loading branch information
mtei authored and drashna committed Jan 13, 2021
1 parent f304fa3 commit 7f03eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ void rgblight_task(void) {
# ifndef RGBLIGHT_BREATHE_TABLE_SIZE
# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256 or 128 or 64
# endif
# include "rgblight_breathe_table.h"
# include <rgblight_breathe_table.h>
# endif

__attribute__((weak)) const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5};
Expand Down

0 comments on commit 7f03eba

Please sign in to comment.