summaryrefslogtreecommitdiff
path: root/crates/windlass/examples/usb_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/windlass/examples/usb_test.rs')
-rw-r--r--crates/windlass/examples/usb_test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/windlass/examples/usb_test.rs b/crates/windlass/examples/usb_test.rs
index 6aee77b..1977258 100644
--- a/crates/windlass/examples/usb_test.rs
+++ b/crates/windlass/examples/usb_test.rs
@@ -1,5 +1,5 @@
use tokio::time::Duration;
-use windlass::{mcu_command, mcu_reply, McuConnection};
+use windlass::{mcu_command, mcu_reply, Connection};
mcu_command!(DebugNop, "debug_nop");
mcu_command!(GetClock, "get_clock");
@@ -31,7 +31,7 @@ async fn main() {
let builder = tokio_serial::new(target, 96_000);
let port = tokio_serial::SerialStream::open(&builder).expect("USB open");
- let mut mcu = McuConnection::connect(port).await.expect("MCU connect");
+ let mut mcu = Connection::connect(port).await.expect("MCU connect");
let mut resp = mcu.register_response(Stats).expect("Register");