Fix wrong return value of lv_arc_get_angle_end (Closes #663)

This commit is contained in:
Themba Dube
2018-12-23 06:38:54 -05:00
parent 52ffa29ebe
commit 6f5c1ba629
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -153,7 +153,7 @@ void lv_arc_set_style(lv_obj_t * arc, lv_arc_style_t type, lv_style_t * style)
*====================*/
/**
* Get the start angles of an arc.
* Get the start angle of an arc.
* @param arc pointer to an arc object
* @return the start angle [0..360]
*/
@@ -165,7 +165,7 @@ uint16_t lv_arc_get_angle_start(lv_obj_t * arc)
}
/**
* Get the end angles of an arc.
* Get the end angle of an arc.
* @param arc pointer to an arc object
* @return the end angle [0..360]
*/
@@ -173,7 +173,7 @@ uint16_t lv_arc_get_angle_end(lv_obj_t * arc)
{
lv_arc_ext_t * ext = lv_obj_get_ext_attr(arc);
return ext->angle_start;
return ext->angle_end;
}
/**
+2 -2
View File
@@ -89,14 +89,14 @@ void lv_arc_set_style(lv_obj_t * arc, lv_arc_style_t type, lv_style_t *style);
*====================*/
/**
* Get the start angles of an arc.
* Get the start angle of an arc.
* @param arc pointer to an arc object
* @return the start angle [0..360]
*/
uint16_t lv_arc_get_angle_start(lv_obj_t * arc);
/**
* Get the end angles of an arc.
* Get the end angle of an arc.
* @param arc pointer to an arc object
* @return the end angle [0..360]
*/