From 918d84973909407b6e8afb89e190ea7327960a09 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 7 Sep 2026 14:43:38 +0200 Subject: [PATCH] Reset thermal_highest_temperature before readings to ensure fail-open on SMART error --- cmdline/thermal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdline/thermal.c b/cmdline/thermal.c index 1f4ec419..4e205439 100644 --- a/cmdline/thermal.c +++ b/cmdline/thermal.c @@ -129,6 +129,9 @@ int state_thermal(struct snapraid_state* state, time_t now) if (state->thermal_temperature_limit == 0) return 0; + /* reset the current highest temperature to ensure fail-open on measurement failure */ + state->thermal_highest_temperature = 0; + state_devmap(state); tommy_list_init(&high);