diff --git a/src/widgets/arc/lv_arc.c b/src/widgets/arc/lv_arc.c index 1a28fd144a..8a9a97b858 100644 --- a/src/widgets/arc/lv_arc.c +++ b/src/widgets/arc/lv_arc.c @@ -955,7 +955,7 @@ static bool lv_arc_angle_within_bg_bounds(lv_obj_t * obj, const lv_value_precise /* Distance between background start and end angles is less than tolerance, * consider the click inside the arc */ else if(((smaller_angle - tolerance_deg) <= 0) && - (360 - (bigger_angle + (smaller_angle - tolerance_deg)))) { + (360 - (bigger_angle + (smaller_angle - tolerance_deg))) != 0) { arc->min_close = 1; arc->in_out = CLICK_INSIDE_BG_ANGLES;