forked from enlightenment/enlightenment
hmm i wonder who broke batget - changed it from 5 to 4 params.
SVN revision: 48915
This commit is contained in:
parent
d116e2e565
commit
8692498308
|
@ -1544,8 +1544,8 @@ poll_cb(void *data __UNUSED__)
|
||||||
((have_battery) && (battery_full < 0)))
|
((have_battery) && (battery_full < 0)))
|
||||||
printf("ERROR\n");
|
printf("ERROR\n");
|
||||||
else
|
else
|
||||||
printf("%i %i %i %i\n",
|
printf("%i %i %i %i %i\n",
|
||||||
battery_full, time_left, have_battery, have_power);
|
battery_full, time_left, time_left, have_battery, have_power);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -1311,14 +1311,16 @@ _battery_cb_exe_data(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
{
|
{
|
||||||
int full = 0;
|
int full = 0;
|
||||||
int time_left = 0;
|
int time_left = 0;
|
||||||
int time_full = 0;
|
int time_full = 0;
|
||||||
int have_battery = 0;
|
int have_battery = 0;
|
||||||
int have_power = 0;
|
int have_power = 0;
|
||||||
|
|
||||||
if (sscanf(ev->lines[i].line, "%i %i %i %i %i",
|
if (sscanf(ev->lines[i].line, "%i %i %i %i %i",
|
||||||
&full, &time_left, &time_full, &have_battery, &have_power)
|
&full, &time_left, &time_full,
|
||||||
|
&have_battery, &have_power)
|
||||||
== 5)
|
== 5)
|
||||||
_battery_update(full, time_left, time_full, have_battery, have_power);
|
_battery_update(full, time_left, time_full,
|
||||||
|
have_battery, have_power);
|
||||||
else
|
else
|
||||||
e_powersave_mode_set(E_POWERSAVE_MODE_LOW);
|
e_powersave_mode_set(E_POWERSAVE_MODE_LOW);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue