Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

update main to use the new usb configurator

Geo214f262797a9
diff --git a/src/main.cpp b/src/main.cpp
index dd32a593..67280f2d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -89,7 +89,7 @@ void setup() {
serialView.setBaudrate(state.getSerialTerminalBaudRate());
// Configure USB
- auto usb = UsbConfigurator::configure(serialView, serialInput);
+ auto usb = UsbConfigurator::configure(serialView, serialInput, deviceInput);
// Build the provider for serial type and run the dispatcher loop
DependencyProvider provider(serialView, deviceView, serialInput, deviceInput, usb.usbService, usb.usbController);
@@ -120,7 +120,7 @@ void setup() {
wsServer.setupRoutes();
// Configure USB
- auto usb = UsbConfigurator::configure(webView, webInput);
+ auto usb = UsbConfigurator::configure(webView, webInput, deviceInput);
// Build the provider for webui type and run the dispatcher loop
DependencyProvider provider(webView, deviceView, webInput, deviceInput, usb.usbService, usb.usbController);