aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--examples/simple/logger.rs2
-rw-r--r--src/lib.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0ecc199..a5a12f5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ readme = "README.md"
[dependencies]
usb-host = "~0.1"
-starb = "~0.1"
+starb = "~0.2"
log = "~0.4"
embedded-hal = "~0.2"
atsamd-hal = "~0.5"
diff --git a/examples/simple/logger.rs b/examples/simple/logger.rs
index be9d391..9fbba77 100644
--- a/examples/simple/logger.rs
+++ b/examples/simple/logger.rs
@@ -36,7 +36,7 @@ impl fmt::Write for JoinedRingBuffer<'_> {
}
}
-static mut LB: RingBuffer<u8> = RingBuffer::<u8>::new(0);
+static mut LB: RingBuffer<u8> = RingBuffer::<u8>::new();
static mut JRB: JoinedRingBuffer = unsafe { JoinedRingBuffer::new(&LB) };
// The UART isn't necessarily Sync, so wrap it in something that
diff --git a/src/lib.rs b/src/lib.rs
index c4285fb..1d6db93 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,7 +34,7 @@ type EventWriter = Writer<'static, Event>;
const NAK_LIMIT: usize = 15;
// Ring buffer for sharing events from interrupt context.
-static mut EVENTS: Events = Events::new(Event::Error);
+static mut EVENTS: Events = Events::new();
#[derive(Clone, Copy, Debug, PartialEq)]
enum DetachedState {