diff options
author | zvecr <git@zvecr.com> | 2019-12-14 17:25:32 +0000 |
---|---|---|
committer | zvecr <git@zvecr.com> | 2019-12-14 17:25:32 +0000 |
commit | 94e2a39d7257357f432a323674d4ed405856c3ae (patch) | |
tree | cba9733d5918c4f2c97a5a3b3b3ede553b755bff | |
parent | f6b9604f4a9e7a97ce2ce06a151c46f577b4133c (diff) | |
download | qmk_firmware-94e2a39d7257357f432a323674d4ed405856c3ae.tar.gz qmk_firmware-94e2a39d7257357f432a323674d4ed405856c3ae.zip |
Move function to make diff look nicer
-rw-r--r-- | quantum/backlight/backlight_soft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/backlight/backlight_soft.c b/quantum/backlight/backlight_soft.c index 2bcecef947..096b41d910 100644 --- a/quantum/backlight/backlight_soft.c +++ b/quantum/backlight/backlight_soft.c @@ -75,8 +75,6 @@ static uint16_t backlight_duty_table[] = { static uint8_t scale_backlight(uint8_t v) { return v * (backlight_duty_table_size - 1) / BACKLIGHT_LEVELS; } -void backlight_set(uint8_t level) { s_duty_pattern = backlight_duty_table[scale_backlight(level)]; } - void backlight_task(void) { static uint8_t backlight_tick = 0; @@ -87,3 +85,5 @@ void backlight_task(void) { } backlight_tick = (backlight_tick + 1) % 16; } + +void backlight_set(uint8_t level) { s_duty_pattern = backlight_duty_table[scale_backlight(level)]; } |