Skip to content

Commit

Permalink
minuitwrp ev_init: delay start if specified in board
Browse files Browse the repository at this point in the history
This setting in the board will help if it takes longer
for the touchscreen driver to initialize.

Use TW_DELAY_TOUCH_INIT_MS := nnnn where nnnn is in MS.

Change-Id: I0a5c602edfe1214d64adadc980921a7bc0aa2bc5
  • Loading branch information
bigbiff committed Jun 26, 2020
1 parent 349ea55 commit c6e2cfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ LOCAL_SRC_FILES := \
terminal.cpp \
twmsg.cpp

ifneq ($(TW_DELAY_TOUCH_INIT_MS),)
LOCAL_CFLAGS += -DTW_DELAY_TOUCH_INIT_MS=$(TW_DELAY_TOUCH_INIT_MS)
endif

ifneq ($(TWRP_CUSTOM_KEYBOARD),)
LOCAL_SRC_FILES += $(TWRP_CUSTOM_KEYBOARD)
else
Expand Down
3 changes: 3 additions & 0 deletions gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ extern "C" int gui_init(void)
PageManager::ReleasePackage("splash");
}

#ifdef TW_DELAY_TOUCH_INIT_MS
usleep(TW_DELAY_TOUCH_INIT_MS);
#endif
ev_init();
return 0;
}
Expand Down

0 comments on commit c6e2cfe

Please sign in to comment.