Fix lost settings on battery plug/unplug

This commit is contained in:
o9000
2015-10-18 17:28:58 +02:00
parent 23ce5df057
commit b52f193804
3 changed files with 8 additions and 2 deletions

View File

@@ -73,8 +73,7 @@ static struct uevent_notify psy_change = {
static void uevent_battery_plug() {
printf("reinitialize batteries after HW change\n");
cleanup_battery();
init_battery();
reinit_battery();
}
static struct uevent_notify psy_plug = {
UEVENT_ADD | UEVENT_REMOVE,