mirror of
https://github.com/haileys/bark
synced 2024-11-10 05:54:15 +00:00
bump to esp-pbuf 0.2.0
This commit is contained in:
parent
d564a207ae
commit
2802b8144b
3 changed files with 4 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -561,9 +561,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "esp-pbuf"
|
name = "esp-pbuf"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7e4e265745059669e3767ab11a5d2e4c4d20d0bbdad74d8ac054cbcc92bb0c8b"
|
checksum = "53836154ac1c89bd589a5c36fa517cbf5e5a4712d4709a1013ec380da850d5f1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"embuild",
|
"embuild",
|
||||||
"esp-idf-sys",
|
"esp-idf-sys",
|
||||||
|
|
|
@ -12,4 +12,4 @@ bytemuck = { workspace = true }
|
||||||
derive_more = { workspace = true }
|
derive_more = { workspace = true }
|
||||||
|
|
||||||
[target.'cfg(target_os="espidf")'.dependencies]
|
[target.'cfg(target_os="espidf")'.dependencies]
|
||||||
esp-pbuf = "0.1"
|
esp-pbuf = "0.2"
|
||||||
|
|
|
@ -12,7 +12,7 @@ unsafe impl Sync for BufferImpl {}
|
||||||
|
|
||||||
impl BufferImpl {
|
impl BufferImpl {
|
||||||
pub fn allocate_zeroed(len: usize) -> Result<Self, AllocatePbufError> {
|
pub fn allocate_zeroed(len: usize) -> Result<Self, AllocatePbufError> {
|
||||||
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()))
|
Ok(BufferImpl(pbuf.zeroed()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue