summaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines/apu2
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2017-09-17 14:24:31 -0500
committerMartin Roth <martinroth@google.com>2017-09-19 14:11:20 +0000
commit6781648054cbabfe7642692fb080f908e95c31f3 (patch)
tree29f8719b0764871e32c52afd8579840aa0e5bf2f /src/mainboard/pcengines/apu2
parentf11d0c341490bd484c0e8afd6a0730ae9e0ac0b7 (diff)
ec/quanta/it8518: correct ACPI battery data fed into ToString()
ToString() requires the input buffer data to be null-terminated, but the data returned by the EC is not, leading Windows to fail to report any battery data at all. Correct this by concatenating a null terminator (0x00) to the end of the buffer data before inputting to ToString() where needed TEST: boot Windows on google/stout, observe battery data reported correctly. Change-Id: I974afcd6ff1c617301d0897d6bd1fe14200aa3b9 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/21579 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/pcengines/apu2')
0 files changed, 0 insertions, 0 deletions