Skip to content

Commit

Permalink
fix(underglow): Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicell committed Oct 11, 2021
1 parent c5b8dd8 commit f23f427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/rgb_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#define BRT_MAX 100

BUILD_ASSERT(CONFIG_ZMK_RGB_UNDERGLOW_BRT_MIN <= CONFIG_ZMK_RGB_UNDERGLOW_BRT_MAX,
"ERROR: RGB underglow maximum brightness is less than minimum brightness");
"ERROR: RGB underglow maximum brightness is less than minimum brightness");

enum rgb_underglow_effect {
UNDERGLOW_EFFECT_SOLID,
Expand Down Expand Up @@ -59,7 +59,7 @@ static const struct device *ext_power;

static struct zmk_led_hsb hsb_scale_min_max(struct zmk_led_hsb hsb) {
hsb.b = CONFIG_ZMK_RGB_UNDERGLOW_BRT_MIN +
(CONFIG_ZMK_RGB_UNDERGLOW_BRT_MAX - CONFIG_ZMK_RGB_UNDERGLOW_BRT_MIN) * hsb.b / BRT_MAX;
(CONFIG_ZMK_RGB_UNDERGLOW_BRT_MAX - CONFIG_ZMK_RGB_UNDERGLOW_BRT_MIN) * hsb.b / BRT_MAX;
return hsb;
}

Expand Down

0 comments on commit f23f427

Please sign in to comment.