summaryrefslogtreecommitdiffstats
path: root/backend_dnpds40.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-06-11 07:50:48 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-06-11 07:50:48 -0400
commit8cda9d4e30a8a16532a23897f4f71f4059834424 (patch)
treed7853c725686ac2f9a02f670874e1cf9bdfa87da /backend_dnpds40.c
parenta8b2ea94f4c0fae86144cdb2b2b6d0718b6e325d (diff)
downloadselphy_print-8cda9d4e30a8a16532a23897f4f71f4059834424.tar.gz
selphy_print-8cda9d4e30a8a16532a23897f4f71f4059834424.tar.bz2
selphy_print-8cda9d4e30a8a16532a23897f4f71f4059834424.zip
dnp: use MFG_* instead of magic numbers
Diffstat (limited to 'backend_dnpds40.c')
-rw-r--r--backend_dnpds40.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend_dnpds40.c b/backend_dnpds40.c
index b15002f..2c93ee4 100644
--- a/backend_dnpds40.c
+++ b/backend_dnpds40.c
@@ -448,13 +448,13 @@ static void dnpds40_cleanup_string(char *start, int len)
static const char *dnpds40_printer_type(int type, int mfg)
{
switch(type) {
- case P_DNP_DS40: return mfg == 1? "CX" : "DS40";
- case P_DNP_DS80: return mfg == 1? "CW" : (mfg == 2 ? "CP3800" : "DS80");
+ case P_DNP_DS40: return mfg == MFG_CITIZEN? "CX" : "DS40";
+ case P_DNP_DS80: return mfg == MFG_CITIZEN? "CW" : (mfg == MFG_MITSUBISHI ? "CP3800" : "DS80");
case P_DNP_DS80D: return "DS80DX";
- case P_DNP_DSRX1: return mfg == 1 ? "CY" : "DSRX1";
- case P_DNP_DS620: return mfg == 1 ? "CX-02" : "DS620";
- case P_DNP_DS820: return type == 1 ? "CX-02W" : "DS820";
- case P_DNP_QW410: return mfg == 1 ? "CZ-01" : "QW410";
+ case P_DNP_DSRX1: return mfg == MFG_CITIZEN ? "CY" : "DSRX1";
+ case P_DNP_DS620: return mfg == MFG_CITIZEN ? "CX-02" : "DS620";
+ case P_DNP_DS820: return mfg == MFG_CITIZEN ? "CX-02W" : "DS820";
+ case P_DNP_QW410: return mfg == MFG_CITIZEN ? "CZ-01" : "QW410";
case P_CITIZEN_CW01: return "CW01";
case P_CITIZEN_OP900II: return "CW-02 / OP900ii";
default: break;