Skip to content

Commit

Permalink
Merge pull request #360 from Shuzhengz/battery_cond
Browse files Browse the repository at this point in the history
Hot fix
  • Loading branch information
JakeRoggenbuck authored Jun 22, 2022
2 parents 2319313 + 1101c7e commit 468b1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub fn check_turbo_enabled() -> Result<bool, Error> {

pub fn check_bat_cond() -> Result<f32, Error> {
let bat_cond_calc: f32 =
(read_bat_energy_full(false).unwrap() / read_bat_energy_full(true).unwrap()) as f32;
read_bat_energy_full(false).unwrap() as f32 / read_bat_energy_full(true).unwrap() as f32;
Ok(bat_cond_calc)
}

Expand Down

0 comments on commit 468b1b4

Please sign in to comment.