diff --git a/src/config/types.rs b/src/config/types.rs index d0d3579..c5995df 100644 --- a/src/config/types.rs +++ b/src/config/types.rs @@ -171,6 +171,9 @@ pub struct TurboAutoSettings { pub load_threshold_low: f32, #[serde(default = "default_temp_threshold_high")] pub temp_threshold_high: f32, + /// Initial turbo boost state when no previous state exists. + /// Set to `true` to start with turbo enabled, `false` to start with turbo disabled. + /// This is only used at first launch or after a reset. #[serde(default = "default_initial_turbo_state")] pub initial_turbo_state: bool, } diff --git a/src/engine.rs b/src/engine.rs index ce644d2..5aa7bc6 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -94,7 +94,7 @@ impl TurboHysteresis { /// Update the turbo state for hysteresis fn update_state(&self, new_state: bool) { -q // First store the new state, then mark as initialized + // First store the new state, then mark as initialized // With this, any thread seeing initialized=true will also see the correct state self.previous_state.store(new_state, Ordering::Release);