Battery: cleanup code and make detection more resilient

git-svn-id: http://tint2.googlecode.com/svn/trunk@739 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-03-28 18:08:44 +00:00
committed by mrovi9000@gmail.com
parent e113080a0e
commit 1a41159142
3 changed files with 248 additions and 179 deletions

View File

@@ -55,7 +55,6 @@ extern int percentage_hide;
extern int8_t battery_low_status;
extern char *battery_low_cmd;
extern char *path_energy_now, *path_energy_full, *path_current_now, *path_status;
// default global data
void default_battery();
@@ -63,8 +62,7 @@ void default_battery();
// freed memory
void cleanup_battery();
// initialize clock : y position, ...
void update_battery();
int update_battery();
void init_battery();
void init_battery_panel(void *panel);