summaryrefslogtreecommitdiffstats
path: root/BatteryMeter.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-23 03:08:21 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-23 03:08:21 -0200
commitc2108e5a482dfb8760849bb01264ed4bdb9f604f (patch)
tree29bd336760c5ca9cbebed5e4a1e007642064cbc4 /BatteryMeter.c
parent3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (diff)
Another mega-patch for the refactoring process.
Kinda runs, but functionality from the original main loop is still missing. Patience.
Diffstat (limited to 'BatteryMeter.c')
-rw-r--r--BatteryMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/BatteryMeter.c b/BatteryMeter.c
index 5cd0c389..d0dff92e 100644
--- a/BatteryMeter.c
+++ b/BatteryMeter.c
@@ -9,7 +9,7 @@ This meter written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com).
#include "BatteryMeter.h"
-#include "Platform.h"
+#include "Battery.h"
#include "ProcessList.h"
#include "CRT.h"
#include "String.h"
@@ -35,7 +35,7 @@ static void BatteryMeter_setValues(Meter * this, char *buffer, int len) {
ACPresence isOnAC;
double percent;
- Platform_getBatteryLevel(&percent, &isOnAC);
+ Battery_getData(&percent, &isOnAC);
if (percent == -1) {
this->values[0] = 0;

© 2014-2024 Faster IT GmbH | imprint | privacy policy