Minimal cool down time accepted by conf is 3 minutes

This commit is contained in:
Andrea Mazzoleni 2026-02-02 09:21:28 +01:00
parent e2d2ddbf67
commit 1c4f9870fb

View file

@ -326,8 +326,8 @@ void state_thermal_cooldown(struct snapraid_state* state)
if (sleep_time == 0)
sleep_time = 5 * 60; /* default sleep time */
if (sleep_time < 5 * 60)
sleep_time = 5 * 60; /* minimum sleep time */
if (sleep_time < 3 * 60)
sleep_time = 3 * 60; /* minimum sleep time */
/* from now on, stop any further data gathering as the heating is interrupted */
state->thermal_stop_gathering = 1;