summaryrefslogtreecommitdiff
path: root/src/ec/smsc/mec1308
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/smsc/mec1308')
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 603b1d41a1..2aa5acea71 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -158,7 +158,7 @@ Device (BAT0)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
If (LGreater (Local1, Local2 - Local3) &&
- LLess (Local1, Add (Local2, Local3)))
+ LLess (Local1, Local2 + Local3))
{
Store (Local2, Local1)
}