display: Add omitted code to display-panel 23/295923/1
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 17 Jul 2023 07:50:23 +0000 (16:50 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 17 Jul 2023 08:14:15 +0000 (17:14 +0900)
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 <yuni.seo@samsung.com>
src/display/display-panel.c

index aa3df63..85b56a4 100644 (file)
@@ -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;
        }