diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-11-25 03:40:14 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-11-25 04:16:31 -0700 |
| commit | b65303ede0750e9d83df4d2c5df67f143c9171c4 (patch) | |
| tree | a8d15bdaa3493ed7a8b66092e6f58cf6ebe1909f /src/module/battery.rs | |
| parent | 5ec7ae026ce9d8c48ef5f0590a300fa308efa487 (diff) | |
i3 mode module fully works now; some API changes
most notably, modules now have a way to request immediate redrawing Change-Id: Id060c88d3ab484addfd8ca574fbc4e2ffdbb5c8f Force-Push: yes
Diffstat (limited to 'src/module/battery.rs')
| -rw-r--r-- | src/module/battery.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module/battery.rs b/src/module/battery.rs index d276a9c..81733b8 100644 --- a/src/module/battery.rs +++ b/src/module/battery.rs @@ -5,6 +5,7 @@ use crate::module::{ CreatableModule, Module }; use std::time::Duration; +use async_channel::Sender; use async_executor::StaticExecutor; @@ -18,7 +19,8 @@ impl CreatableModule for BatteryModule { const REQUIRED_FACILITIES: FacilityType = FacilityType::ENVSYS; async fn new(facilities: &mut FacilityMap, - _executor: &'static StaticExecutor) + _executor: &'static StaticExecutor, + _redraw_sender: Sender<()>) -> Result<BatteryModule> { let envsys: &mut EnvSys = facilities.get().ok_or(Error::custom( |