From 4f6628bb4a28d40641878f7b574dc7c5be221161 Mon Sep 17 00:00:00 2001 From: C47D Date: Sun, 5 May 2024 22:18:07 -0600 Subject: [PATCH] chore(scale): Format code --- src/widgets/scale/lv_scale.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/widgets/scale/lv_scale.c b/src/widgets/scale/lv_scale.c index 3956e58a5174..fe91f0465f01 100644 --- a/src/widgets/scale/lv_scale.c +++ b/src/widgets/scale/lv_scale.c @@ -487,12 +487,13 @@ static void lv_scale_event(const lv_obj_class_t * class_p, lv_event_t * event) scale_find_section_tick_idx(obj); scale_calculate_main_compensation(obj); - if (scale->draw_ticks_on_top) { - scale_draw_main(obj, event); - scale_draw_indicator(obj, event); - } else { - scale_draw_indicator(obj, event); - scale_draw_main(obj, event); + if(scale->draw_ticks_on_top) { + scale_draw_main(obj, event); + scale_draw_indicator(obj, event); + } + else { + scale_draw_indicator(obj, event); + scale_draw_main(obj, event); } } } @@ -501,12 +502,13 @@ static void lv_scale_event(const lv_obj_class_t * class_p, lv_event_t * event) scale_find_section_tick_idx(obj); scale_calculate_main_compensation(obj); - if (scale->draw_ticks_on_top) { - scale_draw_main(obj, event); - scale_draw_indicator(obj, event); - } else { - scale_draw_indicator(obj, event); - scale_draw_main(obj, event); + if(scale->draw_ticks_on_top) { + scale_draw_main(obj, event); + scale_draw_indicator(obj, event); + } + else { + scale_draw_indicator(obj, event); + scale_draw_main(obj, event); } } }