From fbe838730fc9d3cbab35783d40b2a6b577bde678 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Thu, 28 Feb 2019 06:56:10 +0100 Subject: [PATCH] lv_btnm: init recolor to 0 --- lv_objx/lv_btnm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lv_objx/lv_btnm.c b/lv_objx/lv_btnm.c index 07e6a72b2..68d04e19e 100644 --- a/lv_objx/lv_btnm.c +++ b/lv_objx/lv_btnm.c @@ -84,6 +84,7 @@ lv_obj_t * lv_btnm_create(lv_obj_t * par, const lv_obj_t * copy) ext->action = NULL; ext->map_p = NULL; ext->toggle = 0; + ext->recolor = 0; ext->styles_btn[LV_BTN_STATE_REL] = &lv_style_btn_rel; ext->styles_btn[LV_BTN_STATE_PR] = &lv_style_btn_pr; ext->styles_btn[LV_BTN_STATE_TGL_REL] = &lv_style_btn_tgl_rel;