fix(perf): perf monitor FPS (#6798)
1. fix perf monitor FPS wrong macro judgement 2. fix arc test failing with no reason
This commit is contained in:
@@ -355,7 +355,7 @@ void lv_display_refr_timer(lv_timer_t * tmr)
|
|||||||
/* Ensure the timer does not run again automatically.
|
/* Ensure the timer does not run again automatically.
|
||||||
* This is done before refreshing in case refreshing invalidates something else.
|
* 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.*/
|
* 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);
|
lv_timer_pause(tmr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 */
|
/* Click close to start angle */
|
||||||
event_cnt = 0;
|
event_cnt = 0;
|
||||||
|
lv_test_mouse_release();
|
||||||
|
lv_test_indev_wait(50);
|
||||||
lv_test_mouse_move_to(376, 285);
|
lv_test_mouse_move_to(376, 285);
|
||||||
lv_test_mouse_press();
|
lv_test_mouse_press();
|
||||||
lv_test_indev_wait(500);
|
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 */
|
/* Click close to end angle */
|
||||||
event_cnt = 0;
|
event_cnt = 0;
|
||||||
|
|
||||||
|
lv_test_mouse_release();
|
||||||
|
lv_test_indev_wait(50);
|
||||||
lv_test_mouse_move_to(376, 285);
|
lv_test_mouse_move_to(376, 285);
|
||||||
lv_test_mouse_press();
|
lv_test_mouse_press();
|
||||||
lv_test_indev_wait(500);
|
lv_test_indev_wait(500);
|
||||||
@@ -264,6 +268,8 @@ void test_two_overlapping_arcs_can_be_interacted_independently(void)
|
|||||||
event_cnt2 = 0;
|
event_cnt2 = 0;
|
||||||
|
|
||||||
// Click on the position of the first arc (center)
|
// 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_move_to(400, 195);
|
||||||
lv_test_mouse_press();
|
lv_test_mouse_press();
|
||||||
lv_test_indev_wait(500);
|
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);
|
TEST_ASSERT_EQUAL_UINT32(1, event_cnt2);
|
||||||
|
|
||||||
// click on the position of the second arc (center)
|
// 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_move_to(400, 285);
|
||||||
lv_test_mouse_press();
|
lv_test_mouse_press();
|
||||||
lv_test_indev_wait(500);
|
lv_test_indev_wait(500);
|
||||||
|
|||||||
Reference in New Issue
Block a user