Implement open() and close() for Usb class, added a lot of TODO's
This commit is contained in:
@@ -25,8 +25,8 @@ int main(int argc, char** argv) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
auto driver = std::make_unique<driver::P700Driver>(usb);
|
||||
//auto printer = std::make_unique<printer::P700Printer>(std::move(driver));
|
||||
auto driver = std::make_shared<driver::P700Driver>(usb);
|
||||
auto printer = std::make_unique<printer::P700Printer>(std::move(driver));
|
||||
//printer::info info = printer->getInfo();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user