summaryrefslogtreecommitdiff
path: root/src/mainboard/acer
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/acer')
-rw-r--r--src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl
index 1f4fb47ba5..1a06314dd4 100644
--- a/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl
+++ b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl
@@ -189,7 +189,8 @@ Method (GBIF, 3, NotSerialized)
Local6 = 4
While (Local7)
{
- Divide (Local7, 10, Local5, Local7)
+ Local5 = Local7 % 10
+ Local7 = Local7 / 10
SERN[Local6] = (Local5 + 0x30) // Add 0x30 to get numeric ASCII
Local6--
}