From aacaac117c416800eecf5c6a547edee11aeae20f Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 13 Sep 2016 01:52:11 +0200 Subject: [PATCH] fix(battery): Replaced hard coded path Fixes jaagr/lemonbuddy#62 --- src/modules/battery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index fe5e3fc4..f8d7c1aa 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -97,7 +97,7 @@ void BatteryModule::subthread_routine() if (poll_seconds > 0 && (++i % poll_seconds) == 0) { // Trigger an inotify event in case the underlying filesystem doesn't log_debug("Poll battery capacity"); - io::file::get_contents("/sys/class/power_supply/BAT0/capacity"); + io::file::get_contents(this->path_capacity); i = 0; }