From 9f8eb120517105f9a335ab30186833816adf6a66 Mon Sep 17 00:00:00 2001 From: Avii Date: Sun, 16 Aug 2026 18:58:40 +0200 Subject: [PATCH] 1786899520 --- dashboard/src/battery.rs | 32 ++++++++++++++++---------------- dashboard/ui/main.slint | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 16 deletions(-) diff --git a/dashboard/src/battery.rs b/dashboard/src/battery.rs index 5c7892f..6bfcd79 100644 --- a/dashboard/src/battery.rs +++ b/dashboard/src/battery.rs @@ -5,22 +5,22 @@ use tokio::{sync::mpsc::UnboundedSender, time::sleep}; use crate::{error::AppError, messages::EventMessage}; -#[derive(Copy, Clone, Debug)] -pub struct BatteryData { - state_of_health: Ratio, - state_of_charge: Ratio, - energy: Energy, - energy_full: Energy, - energy_full_design: Energy, - energy_rate: Power, - state: State, - voltage: ElectricPotential, - temperature: Option, - technology: Technology, - cycle_count: Option, - time_to_full: Option