diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl index 316a3421e7..6e9ba895fa 100644 --- a/src/ec/quanta/it8518/acpi/battery.asl +++ b/src/ec/quanta/it8518/acpi/battery.asl @@ -63,12 +63,12 @@ Device (BATX) Method (WAEC) { Store (20, Local0) // Timeout 100 msec - While (LEqual (HSID, Zero)) + While (HSID == 0) { // EC Is not ready Sleep (5) Local0-- - If (LEqual (Local0, Zero)) + If (Local0 == 0) { Break } @@ -233,7 +233,7 @@ Device (BATX) } // Set critical flag if battery is empty - If (LEqual (And (HB0S, 0x0F), 0)) + If (And (HB0S, 0x0F) == 0) { Or (Local0, 4, Local0) }