diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index c645728516..e8c3c9f629 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -393,7 +393,7 @@ static bool load_bitmap(struct wps_data *wps_data, int ret = read_bmp_file(filename, bm, wps_data->img_buf_free, format); - DEBUGF("Read %s, ret=%d\n",filename,ret); + if (ret > 0) { #if LCD_DEPTH == 16 diff --git a/tools/checkwps/Makefile b/tools/checkwps/Makefile new file mode 100644 index 0000000000..a64196d456 --- /dev/null +++ b/tools/checkwps/Makefile @@ -0,0 +1,18 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id: Makefile 16822 2008-03-26 18:18:22Z dave $ +# + +all: checkwps + +checkwps: checkwps.c ../../apps/gui/wps_parser.c ../../apps/gui/wps_debug.c ../../firmware/common/ctype.c ../../apps/misc.c ../../apps/recorder/bmp.c + $(SILENT)$(CC) -g -I ../../apps/gui -I../../firmware/export \ +-D__PCTOOL__ -DDEBUG -DROCKBOX_HAS_LOGF -DIPOD_COLOR -D ROCKBOX_DIR_LEN -D WPS_DIR=\".\" \ +-I../../apps -I../../firmware/target/arm/ipod -I../../firmware/include $+ -o $@ + +clean: + rm -f cleanwps diff --git a/tools/checkwps.c b/tools/checkwps/checkwps.c similarity index 100% rename from tools/checkwps.c rename to tools/checkwps/checkwps.c