Battery: new config option battery_full_cmd (fixes issue #585)

This commit is contained in:
o9000
2017-06-20 20:38:26 +02:00
parent dee210ceec
commit 201ea843a0
15 changed files with 448 additions and 373 deletions

View File

@@ -544,6 +544,11 @@ void add_entry(char *key, char *value)
#ifdef ENABLE_BATTERY
if (strlen(value) > 0)
battery_low_cmd = strdup(value);
#endif
} else if (strcmp(key, "battery_full_cmd") == 0) {
#ifdef ENABLE_BATTERY
if (strlen(value) > 0)
battery_full_cmd = strdup(value);
#endif
} else if (strcmp(key, "ac_connected_cmd") == 0) {
#ifdef ENABLE_BATTERY