From cbc38afb3a0d3ca02159ab89242749809e64df0c Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:28:45 -0500 Subject: [PATCH] fix(bmp) fix typo in BPP condition Thanks @egonbeermat --- src/extra/libs/bmp/lv_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra/libs/bmp/lv_bmp.c b/src/extra/libs/bmp/lv_bmp.c index 73e803025d..a45f8dfe40 100644 --- a/src/extra/libs/bmp/lv_bmp.c +++ b/src/extra/libs/bmp/lv_bmp.c @@ -152,7 +152,7 @@ static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4; bool color_depth_error = false; - if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 || b.bpp != 24)) { + if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 && b.bpp != 24)) { LV_LOG_WARN("LV_COLOR_DEPTH == 32 but bpp is %d (should be 32 or 24)", b.bpp); color_depth_error = true; }