Fix #1472: Ignore DISABLED state when counting button states

This commit is contained in:
embeddedt
2020-04-24 20:24:34 -04:00
committed by GitHub
parent 15e064f4af
commit ac1680c53f
+2 -2
View File
@@ -41,8 +41,8 @@ enum {
LV_BTN_STATE_PRESSED,
LV_BTN_STATE_CHECKED_RELEASED,
LV_BTN_STATE_CHECKED_PRESSED,
LV_BTN_STATE_DISABLED = 0x80,
_LV_BTN_STATE_LAST, /* Number of states*/
_LV_BTN_STATE_LAST = LV_BTN_STATE_CHECKED_PRESSED + 1, /* Number of states*/
LV_BTN_STATE_DISABLED = 0x80
};
typedef uint8_t lv_btn_state_t;