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