Commit a084024e authored by Jacko Dirks's avatar Jacko Dirks
Browse files

Fixed build all, fixed program not returning errorcode in some cases of failure.

parent 979f4221
......@@ -3,7 +3,7 @@ EXE := lm4flash
CFLAGS := -Wall $(shell pkg-config --cflags libusb-1.0)
LDFLAGS := $(shell pkg-config --libs libusb-1.0)
all: CLFAGS += -O2
all: CFLAGS += -O2
all: $(EXE)
debug: CFLAGS += -g -DDEBUG
......
......@@ -730,7 +730,7 @@ static int flasher_flash(const char *serial, const char *rom_name)
goto done;
}
switch (flasher_find_matching_device(
switch (retval = flasher_find_matching_device(
ctx, &device, &retval, ICDI_VID, ICDI_PID, serial)) {
case FLASHER_SUCCESS:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment