summaryrefslogtreecommitdiffstats
path: root/backend_shinkos2145.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-09-21 18:20:40 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-09-21 18:20:40 -0400
commitc817f9e2cadfdea5dfe232db4f5920b7a93fd45e (patch)
tree8f87d9343413f879afea14eeb995aca7d0b39775 /backend_shinkos2145.c
parentf071aeb0c9e97c84776bb764da6eacd47f62c19a (diff)
downloadselphy_print-c817f9e2cadfdea5dfe232db4f5920b7a93fd45e.tar.gz
selphy_print-c817f9e2cadfdea5dfe232db4f5920b7a93fd45e.tar.bz2
selphy_print-c817f9e2cadfdea5dfe232db4f5920b7a93fd45e.zip
shinko: Add support for media forcing to all shinko models.
Diffstat (limited to 'backend_shinkos2145.c')
-rw-r--r--backend_shinkos2145.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index b3f47b8..334d4f1 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -1431,8 +1431,12 @@ static int shinkos2145_attach(void *vctx, struct libusb_device_handle *dev, int
}
}
} else {
+ int media_code = PRINT_MEDIA_6x9;
+ if (getenv("MEDIA_CODE"))
+ media_code = atoi(getenv("MEDIA_CODE"));
+
media_prints = 680;
- ctx->media_code = PRINT_MEDIA_6x9;
+ ctx->media_code = media_code;
}
ctx->marker.color = "#00FFFF#FF00FF#FFFF00";
@@ -1797,7 +1801,7 @@ static const char *shinkos2145_prefixes[] = {
struct dyesub_backend shinkos2145_backend = {
.name = "Shinko/Sinfonia CHC-S2145/S2",
- .version = "0.53",
+ .version = "0.54",
.uri_prefixes = shinkos2145_prefixes,
.cmdline_usage = shinkos2145_cmdline,
.cmdline_arg = shinkos2145_cmdline_arg,