19 lines
319 B
Rust
19 lines
319 B
Rust
use crate::{apps, energy::EnergyStatus};
|
|
|
|
/*pub struct State {
|
|
pub global: GlobalState,
|
|
pub mode: ModeState,
|
|
}*/
|
|
|
|
pub struct State {
|
|
pub energy: EnergyStatus,
|
|
pub hour: u8,
|
|
pub minute: u8,
|
|
}
|
|
|
|
#[warn(clippy::large_enum_variant)]
|
|
pub enum ModeState {
|
|
Clock(apps::clock::ClockState),
|
|
Dial(apps::dial::DialState),
|
|
}
|