tm220 print mode refactoring
This commit is contained in:
@@ -34,6 +34,8 @@ public class EpsonPrintService: IPrintService
|
||||
|
||||
var printerId = await epsonPrinter.GetPrinterIdAsync();
|
||||
|
||||
_logger.LogInformation("Printer ID({ip}): {PrinterId}", printerIp, printerId);
|
||||
|
||||
var status = await epsonPrinter.GetPrinterStatusAsync();
|
||||
if (!status.IsOnline)
|
||||
{
|
||||
|
||||
@@ -42,6 +42,13 @@ public class TM_T30IIITranslated : IPrinter
|
||||
|
||||
foreach (var command in commands)
|
||||
{
|
||||
if(command.SetLineSpacing.HasValue)
|
||||
{
|
||||
Console.WriteLine($"Setting line spacing to {command.SetLineSpacing.Value}");
|
||||
await _printer.SetCustomLineSpacing(command.SetLineSpacing.Value);
|
||||
Console.WriteLine($"------------------------------------------------------");
|
||||
continue;
|
||||
}
|
||||
if (command.IsBig)
|
||||
{
|
||||
await _printer.SetFontSizeAsync(2, 1);
|
||||
|
||||
Reference in New Issue
Block a user