Skip to content

plugins/nightlight: Ensure the target temperature remains within reasonable bounds

The interpolated temperature can get out of the bounds of [target1, target2] if the current time is slightly earlier than m_prev.first, which can be unexpected. This change addresses that by adding a relevant guard.

(cherry picked from commit f4617445)

Merge request reports

Loading