slb

Sleep on Low Battery
Log | Files | Refs | README | LICENSE

commit 94fee76360b990d8aa19375420e9e09a73c1282b
parent 69a93293a890aec5cb0557470254369e762cfb2f
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Wed, 30 Oct 2019 22:33:29 +0100

Remove hardcoded values in config.h

Thanks Evil_Bob

Diffstat:
Mconfig.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.h b/config.h @@ -3,16 +3,16 @@ int delay = 10; /* threshold below which system should hibernate */ int threshold = 10; -const char bat[][64] = { +const char *bat[] = { "/sys/class/power_supply/BAT0/capacity", "/sys/class/power_supply/BAT1/capacity" }; -const char ac[64] = { +const char ac[] = { "/sys/class/power_supply/AC/online" }; -const char cmd[64] = { +const char cmd[] = { "/bin/ZZZ" };