diff options
| author | Joel Challis <git@zvecr.com> | 2020-01-19 16:30:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-19 16:30:34 +0000 |
| commit | 667045b4928badaedb38f535d885a46ff8a454fb (patch) | |
| tree | 5ae5e7002381a7359eabe627b936f0c253e2822e /quantum/process_keycode/process_rgb.c | |
| parent | f5209aa4e941c7f3a942ef4a7e256ab432ec98ce (diff) | |
| download | qmk_firmware-667045b4928badaedb38f535d885a46ff8a454fb.tar.gz qmk_firmware-667045b4928badaedb38f535d885a46ff8a454fb.zip | |
Run clang-format manually to fix recently changed files (#7934)
* Run clang-format manually to fix recently changed files
* Run clang-format manually to fix recently changed files - revert template files
* Run clang-format manually to fix recently changed files - format off for ascii_to_keycode_lut
Diffstat (limited to 'quantum/process_keycode/process_rgb.c')
| -rw-r--r-- | quantum/process_keycode/process_rgb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/process_keycode/process_rgb.c b/quantum/process_keycode/process_rgb.c index c76166342..627e5986f 100644 --- a/quantum/process_keycode/process_rgb.c +++ b/quantum/process_keycode/process_rgb.c | |||
| @@ -20,8 +20,8 @@ typedef void (*rgb_func_pointer)(void); | |||
| 20 | 20 | ||
| 21 | /** | 21 | /** |
| 22 | * Wrapper for inc/dec rgb keycode | 22 | * Wrapper for inc/dec rgb keycode |
| 23 | * | 23 | * |
| 24 | * noinline to optimise for firmware size not speed (not in hot path) | 24 | * noinline to optimise for firmware size not speed (not in hot path) |
| 25 | */ | 25 | */ |
| 26 | static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, const rgb_func_pointer inc_func, const rgb_func_pointer dec_func) { | 26 | static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, const rgb_func_pointer inc_func, const rgb_func_pointer dec_func) { |
| 27 | if (is_shifted) { | 27 | if (is_shifted) { |
| @@ -35,10 +35,10 @@ static void __attribute__((noinline)) handleKeycodeRGB(const uint8_t is_shifted, | |||
| 35 | * Wrapper for animation mode | 35 | * Wrapper for animation mode |
| 36 | * - if not in animation family -> jump to that animation | 36 | * - if not in animation family -> jump to that animation |
| 37 | * - otherwise -> wrap round animation speed | 37 | * - otherwise -> wrap round animation speed |
| 38 | * | 38 | * |
| 39 | * noinline to optimise for firmware size not speed (not in hot path) | 39 | * noinline to optimise for firmware size not speed (not in hot path) |
| 40 | */ | 40 | */ |
| 41 | static void __attribute__((noinline,unused)) handleKeycodeRGBMode(const uint8_t start, const uint8_t end) { | 41 | static void __attribute__((noinline, unused)) handleKeycodeRGBMode(const uint8_t start, const uint8_t end) { |
| 42 | if ((start <= rgblight_get_mode()) && (rgblight_get_mode() < end)) { | 42 | if ((start <= rgblight_get_mode()) && (rgblight_get_mode() < end)) { |
| 43 | rgblight_step(); | 43 | rgblight_step(); |
| 44 | } else { | 44 | } else { |
