From 9194bd1dcad489cff009d90cb6c45b7b587fab69 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Mar 2026 14:23:53 +0800 Subject: [PATCH] feat(control): add auto_enabled and flt_active to UnitRuntime --- src/control/runtime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/control/runtime.rs b/src/control/runtime.rs index d99347b..12e9e46 100644 --- a/src/control/runtime.rs +++ b/src/control/runtime.rs @@ -18,11 +18,13 @@ pub enum UnitRuntimeState { pub struct UnitRuntime { pub unit_id: Uuid, pub state: UnitRuntimeState, + pub auto_enabled: bool, pub accumulated_run_sec: i64, pub current_run_elapsed_sec: i64, pub current_stop_elapsed_sec: i64, pub distributor_run_elapsed_sec: i64, pub fault_locked: bool, + pub flt_active: bool, pub comm_locked: bool, pub manual_ack_required: bool, pub last_tick_at: Option>, @@ -33,11 +35,13 @@ impl UnitRuntime { Self { unit_id, state: UnitRuntimeState::Stopped, + auto_enabled: false, accumulated_run_sec: 0, current_run_elapsed_sec: 0, current_stop_elapsed_sec: 0, distributor_run_elapsed_sec: 0, fault_locked: false, + flt_active: false, comm_locked: false, manual_ack_required: false, last_tick_at: None,