diff --git a/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.c b/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.c index 22dfd563291b..63f4915d58cf 100644 --- a/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.c +++ b/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.c @@ -24,6 +24,7 @@ / Some performance improvement. /----------------------------------------------------------------------------*/ +#ifndef TASMOTA // has tjpegd in ROM #include "tjpgd.h" @@ -1135,3 +1136,5 @@ JRESULT jd_decomp( return rc; } +#endif // TASMOTA + diff --git a/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.h b/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.h index f1b578820e8b..7c0b91a00164 100644 --- a/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.h +++ b/lib/libesp32_lvgl/lvgl/src/libs/tjpgd/tjpgd.h @@ -1,6 +1,7 @@ /*----------------------------------------------------------------------------/ / TJpgDec - Tiny JPEG Decompressor R0.03 include file (C)ChaN, 2021 /----------------------------------------------------------------------------*/ +#ifndef TASMOTA // has tjpegd in ROM #ifndef DEF_TJPGDEC #define DEF_TJPGDEC @@ -101,3 +102,4 @@ JRESULT jd_restart(JDEC * jd, uint16_t rstn); #endif #endif /* _TJPGDEC */ +#endif // TASMOTA