summaryrefslogtreecommitdiff
path: root/components/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/battery.c')
-rw-r--r--components/battery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/battery.c b/components/battery.c
index 07b6ac1..f54db93 100644
--- a/components/battery.c
+++ b/components/battery.c
@@ -4,6 +4,9 @@
#include "../util.h"
+// Used for battery warning
+extern void batt_hook(int perc);
+
#if defined(__linux__)
#include <limits.h>
#include <stdint.h>
@@ -40,6 +43,8 @@
return NULL;
}
+ batt_hook(perc);
+
return bprintf("%d", perc);
}