From 732aaa5fbc989e33e991d3627b9a2173e0f70058 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 3 Jan 2016 09:50:45 -0500 Subject: [PATCH] We need libm for the library now. --- Makefile | 4 ++-- backend_shinkos6145.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cdfaab3..97f334d 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ CFLAGS += -DWITH_6145_LIB -I$(LIBS6145) LIBS6145_NAME = S6145ImageProcessRE # Reverse-engineered DEPS += $(LIBS6145)/libS6145ImageProcessRE.so -LDFLAGS += -L$(LIBS6145) -l$(LIBS6145_NAME) +LDFLAGS += -L$(LIBS6145) -l$(LIBS6145_NAME) -lm endif # List of backends @@ -65,7 +65,7 @@ clean: ifneq ($(LIBS6145),) $(LIBS6145)/libS6145ImageProcessRE.so: $(LIBS6145)/libS6145ImageProcess.o - $(CC) -Os -g -shared -o $@ $< + $(CC) -lm -Os -g -shared -o $@ $< $(LIBS6145)/libS6145ImageProcess.o: $(LIBS6145)/libS6145ImageProcess.c $(CC) -c -Wall -Wextra -o $@ -fPIC $< diff --git a/backend_shinkos6145.c b/backend_shinkos6145.c index 43b929d..2fb4c5d 100644 --- a/backend_shinkos6145.c +++ b/backend_shinkos6145.c @@ -1884,7 +1884,7 @@ static void lib6145_process_image(uint8_t *src, uint16_t *dest, if (col < pad_l) { val = 0; } else if (col < pad_r) { - val = corrdata->pulseTransTable_O[0x7f]; + val = corrdata->pulseTransTable_O[corrdata->printOpLevel]; } else { val = 0; }