lv_arc_set_value: be sure the 'fixed' angle is corerct

This commit is contained in:
Gabor Kiss-Vamosi
2020-09-01 09:37:00 +02:00
parent 775f1a59df
commit 1102cfdf82

View File

@@ -423,6 +423,7 @@ void lv_arc_set_value(lv_obj_t * arc, int16_t value)
break;
default: /** LV_ARC_TYPE_NORMAL*/
angle = _lv_map(ext->cur_value, ext->min_value, ext->max_value, ext->bg_angle_start, bg_end);
lv_arc_set_start_angle(arc, ext->bg_angle_start);
lv_arc_set_end_angle(arc, angle);
}
ext->last_angle = angle; /*Cache angle for slew rate limiting*/