mirror of
https://github.com/murphyzhao/FlexibleButton.git
synced 2023-11-24 09:39:02 +08:00
Merge pull request #4 from zhaojuntao/fix-flex_button_register
[bug][flexible_button] fix `flex_button_register` api logical error
This commit is contained in:
commit
91cd3c9485
@ -51,7 +51,7 @@ int8_t flex_button_register(flex_button_t *button)
|
|||||||
{
|
{
|
||||||
flex_button_t *curr = btn_head;
|
flex_button_t *curr = btn_head;
|
||||||
|
|
||||||
if (!button && (button_cnt > MAX_BUTTON_CNT))
|
if (!button || (button_cnt > MAX_BUTTON_CNT))
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user