mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-27 11:31:13 +00:00
qmk cformat (#10767)
This commit is contained in:
parent
75a18e69f9
commit
991c75081c
@ -246,9 +246,7 @@ static uint16_t cie_lightness(uint16_t v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rescale the supplied backlight value to be in terms of the value limit
|
// rescale the supplied backlight value to be in terms of the value limit
|
||||||
static uint32_t rescale_limit_val(uint32_t val) {
|
static uint32_t rescale_limit_val(uint32_t val) { return (val * (BACKLIGHT_LIMIT_VAL + 1)) / 256; }
|
||||||
return (val * (BACKLIGHT_LIMIT_VAL + 1)) / 256;
|
|
||||||
}
|
|
||||||
|
|
||||||
// range for val is [0..TIMER_TOP]. PWM pin is high while the timer count is below val.
|
// range for val is [0..TIMER_TOP]. PWM pin is high while the timer count is below val.
|
||||||
static inline void set_pwm(uint16_t val) { OCRxx = val; }
|
static inline void set_pwm(uint16_t val) { OCRxx = val; }
|
||||||
|
Loading…
Reference in New Issue
Block a user