Skip to content

Commit c1a56fc

Browse files
committed
refactoring EscAsteriskCommand
1 parent 167a407 commit c1a56fc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/com/dantsu/thermalprinter/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public AsyncEscPosPrinter getAsyncEscPosPrinter(DeviceConnection printerConnecti
286286
AsyncEscPosPrinter printer = new AsyncEscPosPrinter(printerConnection, 203, 48f, 32);
287287
return printer.addTextToPrint(
288288
"[C]<img>" + PrinterTextParserImg.bitmapToHexadecimalString(printer, this.getApplicationContext().getResources().getDrawableForDensity(R.drawable.logo, DisplayMetrics.DENSITY_MEDIUM)) + "</img>\n" +
289-
/*"[L]\n" +
289+
"[L]\n" +
290290
"[C]<u><font size='big'>ORDER N°045</font></u>\n" +
291291
"[L]\n" +
292292
"[C]<u type='double'>" + format.format(new Date()) + "</u>\n" +
@@ -312,7 +312,7 @@ public AsyncEscPosPrinter getAsyncEscPosPrinter(DeviceConnection printerConnecti
312312
"[L]Tel : +33801201456\n" +
313313
"\n" +
314314
"[C]<barcode type='ean13' height='10'>831254784551</barcode>\n" +
315-
"[L]\n" +*/
315+
"[L]\n" +
316316
"[C]<qrcode size='20'>http://www.developpeur-web.dantsu.com/</qrcode>\n"
317317
);
318318
}

app/src/main/java/com/dantsu/thermalprinter/async/AsyncEscPosPrint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected PrinterStatus doInBackground(AsyncEscPosPrinter... printersData) {
6666
new EscPosCharsetEncoding("windows-1252", 16)
6767
);
6868

69-
printer.useEscAsteriskCommand(true);
69+
// printer.useEscAsteriskCommand(true);
7070

7171
this.publishProgress(AsyncEscPosPrint.PROGRESS_PRINTING);
7272

0 commit comments

Comments
 (0)