This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enigmatic.

View the commit online.

commit 632fb2ae2e4a08a9c2911bb4c2e263b38106b273
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Jan 22 18:51:13 2026 +0000

    sensors: add support for hidd batteries.
---
 src/bin/system/machine/sensors.x | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/system/machine/sensors.x b/src/bin/system/machine/sensors.x
index 8381315..3c5ccc8 100644
--- a/src/bin/system/machine/sensors.x
+++ b/src/bin/system/machine/sensors.x
@@ -522,6 +522,14 @@ battery_update(Battery *bat)
                charge_current = 5;
              free(buf);
           }
+        snprintf(path, sizeof(path), "%s/capacity", link);
+        buf = file_contents(path);
+        if (buf)
+          {
+             charge_full = 100;
+             charge_current = atoi(buf);
+             free(buf);
+          }
      }
 done:
    if (link) free(link);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to