From 9b38b3542032ebed46cf6b8fdf3c352dcbf7d324 Mon Sep 17 00:00:00 2001 From: Adam Martini Date: Sat, 20 Jun 2020 11:13:37 -0700 Subject: [PATCH] Static state setter --- src/lv_widgets/lv_rotary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_widgets/lv_rotary.h b/src/lv_widgets/lv_rotary.h index fa584e0fd..5ddd1a485 100644 --- a/src/lv_widgets/lv_rotary.h +++ b/src/lv_widgets/lv_rotary.h @@ -189,7 +189,7 @@ static inline void lv_rotary_set_rotation(lv_obj_t * rotary, uint16_t rotation_a * @param rotary pointer to a rotary object * @param state the new state of the rotary (from lv_rotary_state_t enum) */ -void lv_rotary_set_state(lv_obj_t * rotary, lv_rotary_state_t state) +static inline void lv_rotary_set_state(lv_obj_t * rotary, lv_rotary_state_t state) { lv_btn_set_state(rotary, state); }