v0.9.4-fix

This commit is contained in:
Mateusz Gruszczyński
2026-09-01 15:01:40 +02:00
parent 150cf6cb7f
commit 7d46e06a4f
+3 -1
View File
@@ -85,8 +85,10 @@ pub fn refresh_zone_runtime_target(zone: &mut Zone, schedules: &[Schedule], hous
return;
}
zone.effective_mode = configured_mode;
// Resolve the target while `target_mode` may still borrow `configured_mode`.
// After this call the borrow ends, so `configured_mode` can be moved into the runtime state.
let (preset, target) = resolve_zone_target(zone, schedule, target_mode);
zone.effective_mode = configured_mode;
zone.active_preset = preset;
zone.effective_setpoint = Some(target);
}