mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-22 08:07:06 +01:00
core: minimize espurna.h use in headers
This commit is contained in:
@@ -2852,10 +2852,18 @@ void lightChannelStep(size_t id, long steps, long multiplier) {
|
||||
lightChannel(id, lightChannel(id) + (steps * multiplier));
|
||||
}
|
||||
|
||||
void lightChannelStep(size_t id, long steps) {
|
||||
lightChannelStep(id, steps, Light::ValueStep);
|
||||
}
|
||||
|
||||
long lightBrightness() {
|
||||
return _light_brightness;
|
||||
}
|
||||
|
||||
void lightBrightnessPercent(long percent) {
|
||||
lightBrightness((percent / 100l) * Light::BrightnessMax);
|
||||
}
|
||||
|
||||
void lightBrightness(long brightness) {
|
||||
_light_brightness = std::clamp(brightness, Light::BrightnessMin, Light::BrightnessMax);
|
||||
}
|
||||
@@ -2864,6 +2872,10 @@ void lightBrightnessStep(long steps, long multiplier) {
|
||||
lightBrightness(static_cast<int>(_light_brightness) + (steps * multiplier));
|
||||
}
|
||||
|
||||
void lightBrightnessStep(long steps) {
|
||||
lightBrightnessStep(steps, Light::ValueStep);
|
||||
}
|
||||
|
||||
unsigned long lightTransitionTime() {
|
||||
return _light_use_transitions ? _light_transition_time : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user