am 209c7b0f: charger: allow devices to skip the initial display blank

* commit '209c7b0fad9604d1dde1b74d9f9d577b923469fd':
  charger: allow devices to skip the initial display blank
This commit is contained in:
Dima Zavin 2012-10-12 15:52:07 -07:00 committed by Android Git Automerger
commit 9b4a9312dc
2 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,10 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
charger.c
ifeq ($(strip $(BOARD_CHARGER_DISABLE_INIT_BLANK)),true)
LOCAL_CFLAGS := -DCHARGER_DISABLE_INIT_BLANK
endif
LOCAL_MODULE := charger
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true

View file

@ -975,7 +975,9 @@ int main(int argc, char **argv)
ev_sync_key_state(set_key_callback, charger);
#ifndef CHARGER_DISABLE_INIT_BLANK
gr_fb_blank(true);
#endif
charger->next_screen_transition = now - 1;
charger->next_key_check = -1;