netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=bda22dc89761d1c1719583fe71a79812a7be7089

commit bda22dc89761d1c1719583fe71a79812a7be7089
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Apr 5 18:35:58 2021 +0100

    sensors: assume present...
---
 src/bin/system/machine/sensors.bogox | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/system/machine/sensors.bogox 
b/src/bin/system/machine/sensors.bogox
index 64a9fb3..082def1 100644
--- a/src/bin/system/machine/sensors.bogox
+++ b/src/bin/system/machine/sensors.bogox
@@ -326,6 +326,7 @@ _power_battery_count_get(power_t *power)
                   snprintf(path, sizeof(path), 
"/sys/class/power_supply/%s/model_name", names[i]->d_name);
                   power->batteries[id]->model = file_contents(path);
                   snprintf(path, sizeof(path), 
"/sys/class/power_supply/%s/present", names[i]->d_name);
+                  power->batteries[id]->present = 1;
                   buf = file_contents(path);
                   if (buf)
                     {

-- 


Reply via email to