Skip to content

Commit

Permalink
Changed status bar behaviour (AK series)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nortank12 committed Aug 9, 2024
1 parent 6137967 commit b1828f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/ak_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl Display {
_ => (),
}
// Status bar
data[2] = (usage as f32 / 10 as f32).round() as u8;
data[2] = if usage < 20 { 1 } else { (usage as f32 / 10 as f32).round() as u8 };
// Alarm
data[6] = (self.alarm && temp > if self.fahrenheit { 185 } else { 85 }) as u8;

Expand Down

0 comments on commit b1828f2

Please sign in to comment.