Fix printer info issue
Some checks failed
Build ptprnt / build (push) Failing after 18s

This commit is contained in:
2024-04-20 14:01:52 +02:00
parent a47a3189d3
commit d98399949c

View File

@@ -74,7 +74,7 @@ const PrinterStatus P700Printer::getPrinterStatus() {
std::vector<uint8_t> recvBuf(32);
while (tries++ < MAX_TRIES_GET_STATUS) {
std::this_thread::sleep_for(100ms);
mUsbHndl->bulkTransfer(p700::commands::INFO[0], recvBuf, &tx, 0);
mUsbHndl->bulkTransfer(p700::commands::PRINTER_INFO[0], recvBuf, &tx, 0);
}
return PrinterStatus{.tapeWidthMm = recvBuf[10]};