summaryrefslogtreecommitdiffstats
path: root/backend_mitsu9550.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-16 16:19:44 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-16 16:20:47 -0500
commit8093bbd11a5a50b2232278391dba6791481c3000 (patch)
tree6007f098159ce4f07fa763a5eb0295e51eaa85a0 /backend_mitsu9550.c
parentea44dc4a8158b989ff50855d0687d82268ba7ef1 (diff)
downloadselphy_print-8093bbd11a5a50b2232278391dba6791481c3000.tar.gz
selphy_print-8093bbd11a5a50b2232278391dba6791481c3000.tar.bz2
selphy_print-8093bbd11a5a50b2232278391dba6791481c3000.zip
common: Allow CORRTABLE_PATH to be overrided at runtime.
Diffstat (limited to 'backend_mitsu9550.c')
-rw-r--r--backend_mitsu9550.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/backend_mitsu9550.c b/backend_mitsu9550.c
index 1ceb251..3e88727 100644
--- a/backend_mitsu9550.c
+++ b/backend_mitsu9550.c
@@ -34,9 +34,9 @@
#include <config.h>
#endif
-#define MITSU_M98xx_LAMINATE_FILE CORRTABLE_PATH "/M98MATTE.raw"
-#define MITSU_M98xx_DATATABLE_FILE CORRTABLE_PATH "/M98TABLE.dat"
-#define MITSU_M98xx_LUT_FILE CORRTABLE_PATH "/M98XXL01.lut"
+#define MITSU_M98xx_LAMINATE_FILE "M98MATTE.raw"
+#define MITSU_M98xx_DATATABLE_FILE "M98TABLE.dat"
+#define MITSU_M98xx_LUT_FILE "M98XXL01.lut"
#define LAMINATE_STRIDE 1868
/* USB VIDs and PIDs */
@@ -456,8 +456,11 @@ hdr_done:
/* Read in CP98xx data tables if necessary */
if (ctx->is_98xx && !job->is_raw && !ctx->m98xxdata) {
+ char full[2048];
+ snprintf(full, sizeof(full), "%s/%s", corrtable_path, MITSU_M98xx_DATATABLE_FILE);
+
DEBUG("Reading in 98xx data from disk\n");
- ctx->m98xxdata = ctx->lib.CP98xx_GetData(MITSU_M98xx_DATATABLE_FILE);
+ ctx->m98xxdata = ctx->lib.CP98xx_GetData(full);
if (!ctx->m98xxdata) {
ERROR("Unable to read 98xx data table file '%s'\n", MITSU_M98xx_DATATABLE_FILE);
}