fix(battery): Replaced hard coded path

Fixes jaagr/lemonbuddy#62
This commit is contained in:
Michael Carlberg 2016-09-13 01:52:11 +02:00
parent b899dd7325
commit aacaac117c

View File

@ -97,7 +97,7 @@ void BatteryModule::subthread_routine()
if (poll_seconds > 0 && (++i % poll_seconds) == 0) { if (poll_seconds > 0 && (++i % poll_seconds) == 0) {
// Trigger an inotify event in case the underlying filesystem doesn't // Trigger an inotify event in case the underlying filesystem doesn't
log_debug("Poll battery capacity"); log_debug("Poll battery capacity");
io::file::get_contents("/sys/class/power_supply/BAT0/capacity"); io::file::get_contents(this->path_capacity);
i = 0; i = 0;
} }