From c440646cdb4699bd0a8740b72a352e7b4af332d3 Mon Sep 17 00:00:00 2001 From: Taeyoung Kim Date: Fri, 15 Jan 2016 18:57:49 +0900 Subject: [PATCH] display: check if the LCDAlwaysOn is set before changing next state Change-Id: I87fcb34e1395b7abbdfc52b5af8f411f3fe58ed9 Signed-off-by: Taeyoung Kim --- src/display/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/core.c b/src/display/core.c index d3cb7f5..fb5fa43 100644 --- a/src/display/core.c +++ b/src/display/core.c @@ -666,7 +666,7 @@ static void update_display_time(void) /* for sdk * if the run_timeout is zero, it regards AlwaysOn state */ - if (run_timeout == 0) { + if (run_timeout == 0 || display_conf.lcd_always_on) { trans_table[S_NORMAL][EVENT_TIMEOUT] = S_NORMAL; run_timeout = ALWAYS_ON_TIMEOUT; _I("LCD Always On"); -- 2.7.4