mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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 BUG=None BRANCH=None TEST=None Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/17783 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de> Change-Id: Ic86048d1d6354b9b0dac3c8957df318d0825c905 Reviewed-on: https://chromium-review.googlesource.com/421167 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> |
||
---|---|---|
.. | ||
acpi | ||
compal/ene932 | ||
google/chromeec | ||
kontron/it8516e | ||
lenovo | ||
purism/librem | ||
quanta | ||
roda/it8518 | ||
smsc/mec1308 | ||
ec.h |