Add USB stub, add logging using spdlog

This commit is contained in:
2022-11-12 15:28:21 +01:00
parent 4809f60d2c
commit 815e67bdfb
8 changed files with 106 additions and 7 deletions

View File

@@ -6,11 +6,13 @@
#include "Usb.hpp"
#include <libusb-1.0/libusb.h>
#include <spdlog/spdlog.h>
using namespace ptprnt;
int main(int argc, char** argv) {
std::cout << "Hello ptprnt!" << std::endl;
spdlog::info("Starting ptprnt {}", PROJ_VERSION);
auto usb = std::make_unique<driver::Usb>();
auto devs = usb->listDevices();
@@ -24,4 +26,5 @@ int main(int argc, char** argv) {
printer::info info = printer->getInfo();*/
return 0;
}
}