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.

Merge request reports