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