adapted kitchen to thermal printer

This commit is contained in:
EugeneTes
2026-01-20 13:32:05 +01:00
parent f3dc04f8ae
commit e5a44e5fde
4 changed files with 10 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ public class EpsonPrintService: IPrintService
await printerAdapter.SetFontSizeAsync(configuration.FontSize);
// Convert receipt content to print commands using the factory
var converter = _receiptConverterFactory.Create(job.Document.ReceiptType, lineWidth: 48, bigFontLineWidth: 24);
var converter = _receiptConverterFactory.Create(job.Document.ReceiptType, printerId.Value);
var commands = converter.Convert(job.Document.Content);
await printerAdapter.PrintAsync(commands);
await Task.Delay(200);