diff --git a/src/core/lv_refr.c b/src/core/lv_refr.c index 13a2608e61..e91fc00597 100644 --- a/src/core/lv_refr.c +++ b/src/core/lv_refr.c @@ -355,7 +355,7 @@ void lv_display_refr_timer(lv_timer_t * tmr) /* Ensure the timer does not run again automatically. * This is done before refreshing in case refreshing invalidates something else. * However if the performance monitor is enabled keep the timer running to count the FPS.*/ -#if LV_USE_PERF_MONITOR +#if !LV_USE_PERF_MONITOR lv_timer_pause(tmr); #endif } diff --git a/tests/src/test_cases/widgets/test_arc.c b/tests/src/test_cases/widgets/test_arc.c index 81da1920d6..ef82688ab8 100644 --- a/tests/src/test_cases/widgets/test_arc.c +++ b/tests/src/test_cases/widgets/test_arc.c @@ -209,6 +209,8 @@ void test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max(void) /* Click close to start angle */ event_cnt = 0; + lv_test_mouse_release(); + lv_test_indev_wait(50); lv_test_mouse_move_to(376, 285); lv_test_mouse_press(); lv_test_indev_wait(500); @@ -221,6 +223,8 @@ void test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max(void) /* Click close to end angle */ event_cnt = 0; + lv_test_mouse_release(); + lv_test_indev_wait(50); lv_test_mouse_move_to(376, 285); lv_test_mouse_press(); lv_test_indev_wait(500); @@ -264,6 +268,8 @@ void test_two_overlapping_arcs_can_be_interacted_independently(void) event_cnt2 = 0; // Click on the position of the first arc (center) + lv_test_mouse_release(); + lv_test_indev_wait(50); lv_test_mouse_move_to(400, 195); lv_test_mouse_press(); lv_test_indev_wait(500); @@ -275,6 +281,8 @@ void test_two_overlapping_arcs_can_be_interacted_independently(void) TEST_ASSERT_EQUAL_UINT32(1, event_cnt2); // click on the position of the second arc (center) + lv_test_mouse_release(); + lv_test_indev_wait(50); lv_test_mouse_move_to(400, 285); lv_test_mouse_press(); lv_test_indev_wait(500);