From 544b25f77996f8bb4241e7d091cb46910e3eb9f3 Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Mon, 17 Jul 2023 16:50:23 +0900 Subject: [PATCH] display: Add omitted code to display-panel Add lcd_on_timeval initizalization code. Because of this, the reset timeout value calculation was not accurate. Change-Id: I2361ed311da06589911e456481977d87426971fb Signed-off-by: Yunhee Seo --- src/display/display-panel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display/display-panel.c b/src/display/display-panel.c index aa3df63..85b56a4 100644 --- a/src/display/display-panel.c +++ b/src/display/display-panel.c @@ -507,6 +507,7 @@ int display_panel_calculate_diff_time_between_lcd_on_direct_and_state_action(int if (lcd_on_timeval.tv_sec != 0) { gettimeofday(&now_timeval, NULL); *diff_time = DIFF_TIMEVAL_MS(now_timeval, lcd_on_timeval); + lcd_on_timeval.tv_sec = 0; return 0; } -- 2.7.4