Use energy instead of charge in battery tile
This commit is contained in:
parent
33be108857
commit
ea274f26c9
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/result
|
/result
|
||||||
/target
|
/target
|
||||||
|
/.direnv
|
||||||
|
|
|
@ -13,7 +13,7 @@ pub async fn battery_stream(config: BatteryConfig) {
|
||||||
loop {
|
loop {
|
||||||
let charge_now = async {
|
let charge_now = async {
|
||||||
let mut raw = String::new();
|
let mut raw = String::new();
|
||||||
File::open(base_path.join("charge_now"))
|
File::open(base_path.join("energy_now"))
|
||||||
.await?
|
.await?
|
||||||
.read_to_string(&mut raw)
|
.read_to_string(&mut raw)
|
||||||
.await?;
|
.await?;
|
||||||
|
@ -22,7 +22,7 @@ pub async fn battery_stream(config: BatteryConfig) {
|
||||||
};
|
};
|
||||||
let charge_total = async {
|
let charge_total = async {
|
||||||
let mut raw = String::new();
|
let mut raw = String::new();
|
||||||
File::open(base_path.join("charge_full"))
|
File::open(base_path.join("energy_full"))
|
||||||
.await?
|
.await?
|
||||||
.read_to_string(&mut raw)
|
.read_to_string(&mut raw)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
Loading…
Reference in a new issue