summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-05-12 23:55:09 -0400
committerSolomon Peachy <pizza@shaftnet.org>2019-05-12 23:55:09 -0400
commitc6b233169a9352fa91e09102eb27674b6eaef45f (patch)
tree70bd0e5e4b29051e8ff3565d56c8bacb4de99b86 /backend_shinkos2145.c
parent462a4ae2f787d0c1f272e9bee6304fce17c5fcaf (diff)
downloadselphy_print-c6b233169a9352fa91e09102eb27674b6eaef45f.tar.gz
selphy_print-c6b233169a9352fa91e09102eb27674b6eaef45f.tar.bz2
selphy_print-c6b233169a9352fa91e09102eb27674b6eaef45f.zip
shinko: More unification, print method decoding.
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index 92db19b..16c5b33 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -231,23 +231,6 @@ s case PRINT_MODE_STD_GLOSSY:
}
#endif
-#define PRINT_METHOD_STD 0x00
-#define PRINT_METHOD_4x6_2UP 0x02
-#define PRINT_METHOD_2x6_2UP 0x04
-
-static char *print_methods (uint8_t v) {
- switch (v) {
- case PRINT_METHOD_STD:
- return "Standard";
- case PRINT_METHOD_4x6_2UP:
- return "4x6 2up";
- case PRINT_METHOD_2x6_2UP:
- return "2x6 2up";
- default:
- return "Unknown";
- }
-}
-
struct s2145_reset_cmd {
struct sinfonia_cmd_hdr hdr;
uint8_t target;
@@ -838,7 +821,8 @@ static void dump_mediainfo(struct s2145_mediainfo_resp *resp)
resp->items[i].code, print_sizes(resp->items[i].code),
resp->items[i].columns,
resp->items[i].rows,
- resp->items[i].print_method, print_methods(resp->items[i].print_method));
+ resp->items[i].print_method,
+ sinfonia_print_methods(resp->items[i].print_method));
}
}