diff --git a/lv_objx/lv_btn.c b/lv_objx/lv_btn.c index 06040df8b1..2bf8314b35 100644 --- a/lv_objx/lv_btn.c +++ b/lv_objx/lv_btn.c @@ -684,7 +684,7 @@ static lv_res_t lv_btn_signal(lv_obj_t * btn, lv_signal_t sign, void * param) res = ext->actions[LV_BTN_ACTION_CLICK](btn); } } - if( LV_RES_INV != res ) { + if(res != LV_RES_INV) { ext->long_pr_action_executed = 0; } }