diff --git a/src/lv_widgets/lv_rotary.h b/src/lv_widgets/lv_rotary.h index 14e5b1de7..a62983b13 100644 --- a/src/lv_widgets/lv_rotary.h +++ b/src/lv_widgets/lv_rotary.h @@ -265,7 +265,9 @@ bool lv_rotary_is_dragged(const lv_obj_t * rotary); */ static inline lv_rotary_type_t lv_rotary_get_type(lv_obj_t * rotary) { - return LV_ROTARY_TYPE_NORMAL; + lv_bar_type_t type = lv_bar_get_type(rotary); + if(type == LV_ROTARY_TYPE_NORMAL) + return LV_ROTARY_TYPE_NORMAL; } /**********************