evolisprinter-2.2
[evolisprinter.git] / src / evolis.c
index cd71e71..4f7175b 100755 (executable)
@@ -286,6 +286,11 @@ int DB32NC(long lPos, char color)
        \r
        lComp = ReduceColor(ucCol, &ucCommand[9], 5);//,1016);\r
        lCommandSize += 10;\r
+\r
+       if (color=='y') info("Download Yellow color");\r
+       else if (color=='m') info("Download Magenta color");\r
+       else if (color=='c') info("Download Cyan color");\r
+\r
        numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
        if (numwritten != lCommandSize) {\r
                fatal("DP32NC Error: Fails printf %d... \n", numwritten);\r
@@ -353,6 +358,12 @@ int DB64NC(long lPos, char color)
        //fprintf(stderr, "**************** EVOLIS DP64NC taille apres compression %d... \n",lComp);\r
        strncpy(&ucCommand[lCommandSize + 9], "\015", 1);\r
        lCommandSize += 10;\r
+\r
+       if (color=='y') info("Download Yellow color");\r
+       else if (color=='m') info("Download Magenta color");\r
+       else if (color=='c') info("Download Cyan color");\r
+\r
+\r
        numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
        if (numwritten != lCommandSize)\r
        {\r
@@ -399,6 +410,11 @@ int DB128NC(long lPos, char color)
        lComp = ReduceColor(ucCol, &ucCommand[10], 7);//,1016);\r
        strncpy(&ucCommand[lCommandSize + 10], "\015", 1);\r
        lCommandSize += 11;\r
+\r
+       if (color=='y') info("Download Yellow color");\r
+       else if (color=='m') info("Download Magenta color");\r
+       else if (color=='c') info("Download Cyan color");\r
+\r
        numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
        if (numwritten != lCommandSize)\r
        {\r
@@ -606,6 +622,8 @@ int DB2NC(long lPos, char pannel[10])
                lComp = ReduceBlack(ucCol, &ucCommand[8],1016);\r
                strncpy(&ucCommand[lCommandSize + 8], "\015", 1);\r
                lCommandSize += 9;\r
+\r
+               info("Download Black");\r
                numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
                if (numwritten != lCommandSize)\r
        {\r
@@ -621,6 +639,7 @@ int DB2NC(long lPos, char pannel[10])
                        strcpy(ucCommand, "\033Db;o;2;");\r
                        strncpy(&ucCommand[lCommandSize + 8], "\015", 1);\r
                        lCommandSize += 9;\r
+                       info("Download varnish - statut : no varnish");\r
                        numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
                        if (numwritten != lCommandSize)\r
                        {\r
@@ -635,6 +654,7 @@ int DB2NC(long lPos, char pannel[10])
                                strcpy(ucCommand, "\033Db;o;2;");\r
                                strncpy(&ucCommand[lCommandSize + 8], "\015", 1);\r
                                lCommandSize += 9;\r
+                               info("Download varnish - statut : full varnish");\r
                                numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
                                if (numwritten != lCommandSize)\r
                                {\r
@@ -741,6 +761,7 @@ int DB2NC(long lPos, char pannel[10])
 \r
        strncpy(&ucCommand[lCommandSize + 8], "\015", 1);\r
        lCommandSize += 9;\r
+       info("Download varnish - statut : cover overlay");\r
        numwritten = fwrite(ucCommand, sizeof(unsigned char), lCommandSize, stdout);\r
        if (numwritten != lCommandSize)\r
        {\r