mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-12 11:17:06 +01:00
lights: fix changing channel value while state is the same
This commit is contained in:
@@ -741,8 +741,7 @@ public:
|
||||
|
||||
private:
|
||||
bool isImmediateTransition(bool state, float diff) {
|
||||
return (!_time || (_step >= _time) || (std::abs(diff) <= std::numeric_limits<float>::epsilon())
|
||||
|| (!state && (diff > 0.0)) || (state && (diff < 0.0)));
|
||||
return (!_time || (_step >= _time) || (std::abs(diff) <= std::numeric_limits<float>::epsilon()));
|
||||
}
|
||||
|
||||
std::vector<Transition> _transitions;
|
||||
|
||||
Reference in New Issue
Block a user