summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 001502106e..9c4844242b 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -317,7 +317,7 @@ Device (BATX)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
- If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Add (Local2, Local3)))
+ If (LGreater (Local1, Local2 - Local3) && LLess (Local1, Local2 + Local3))
{
Store (Local2, Local1)
}