diff --git a/Cargo.lock b/Cargo.lock index 02255b6..680ce42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -561,9 +561,9 @@ dependencies = [ [[package]] name = "esp-pbuf" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e4e265745059669e3767ab11a5d2e4c4d20d0bbdad74d8ac054cbcc92bb0c8b" +checksum = "53836154ac1c89bd589a5c36fa517cbf5e5a4712d4709a1013ec380da850d5f1" dependencies = [ "embuild", "esp-idf-sys", diff --git a/bark-protocol/Cargo.toml b/bark-protocol/Cargo.toml index 29b4ba2..5073f77 100644 --- a/bark-protocol/Cargo.toml +++ b/bark-protocol/Cargo.toml @@ -12,4 +12,4 @@ bytemuck = { workspace = true } derive_more = { workspace = true } [target.'cfg(target_os="espidf")'.dependencies] -esp-pbuf = "0.1" +esp-pbuf = "0.2" diff --git a/bark-protocol/src/buffer/pbuf_impl.rs b/bark-protocol/src/buffer/pbuf_impl.rs index 4ba3881..2fd2124 100644 --- a/bark-protocol/src/buffer/pbuf_impl.rs +++ b/bark-protocol/src/buffer/pbuf_impl.rs @@ -12,7 +12,7 @@ unsafe impl Sync for BufferImpl {} impl BufferImpl { pub fn allocate_zeroed(len: usize) -> Result { - let pbuf = PbufUninit::allocate(ffi::PBUF_TRANSPORT, len, ffi::PBUF_RAM)?; + let pbuf = PbufUninit::allocate(ffi::PBUF_TRANSPORT, ffi::PBUF_RAM, len)?; Ok(BufferImpl(pbuf.zeroed())) }