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

* commit '9b4a9312dc1c158ae28ce3f3a2f6ebf16fd94ff1':
  charger: allow devices to skip the initial display blank
This commit is contained in:
Dima Zavin 2012-10-12 15:53:48 -07:00 committed by Android Git Automerger
commit 657cd83899
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;