Some side tracking fixing undefined behaviour and memory vulnurabilities
This commit is contained in:
@@ -91,7 +91,7 @@ int PtouchPrint::run() {
|
||||
"Found more than one device of the same printer on bus. Currently not supported");
|
||||
return -1;
|
||||
}
|
||||
printer->attachUsbDevice(devices[0]);
|
||||
printer->attachUsbDevice(std::move(devices[0]));
|
||||
auto status = printer->getPrinterStatus();
|
||||
spdlog::info("Detected tape width is {}mm", status.tapeWidthMm);
|
||||
auto bm = ptprnt::graphics::Bitmap<ptprnt::graphics::ALPHA8>(512, 128);
|
||||
|
Reference in New Issue
Block a user