Fix real Usb Device references in Printer
All checks were successful
Build ptprnt / build (push) Successful in 3m5s

This commit is contained in:
2025-10-21 20:51:17 +02:00
parent 34b4e10c62
commit 1f57a802f3
3 changed files with 44 additions and 25 deletions

View File

@@ -138,6 +138,10 @@ bool P700Printer::printBitmap(const graphics::Bitmap<graphics::ALPHA8>& bitmap)
}
bool P700Printer::printMonochromeData(const graphics::MonochromeData& data) {
if (!mUsbHndl) {
spdlog::error("USB Handle is invalid!");
return false;
}
// Send initialization sequence
// The INITIALIZE command needs to be sent as a 128-byte packet with ESC @ at the end
std::vector<uint8_t> initCmd(128, 0x00);