Skip to content

Commit 872a8fa

Browse files
committed
Fix CI
1 parent 3c95ec1 commit 872a8fa

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

examples/ble_l2cap.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#[cfg(all(
1616
not(any(esp32s2, esp32p4)),
17+
esp_idf_bt_nimble_enabled,
1718
not(esp_idf_bt_nimble_l2cap_coc_max_num = "0")
1819
))]
1920
fn main() -> anyhow::Result<()> {
@@ -22,6 +23,7 @@ fn main() -> anyhow::Result<()> {
2223

2324
#[cfg(not(all(
2425
not(any(esp32s2, esp32p4)),
26+
esp_idf_bt_nimble_enabled,
2527
not(esp_idf_bt_nimble_l2cap_coc_max_num = "0")
2628
)))]
2729
fn main() -> anyhow::Result<()> {
@@ -30,6 +32,7 @@ fn main() -> anyhow::Result<()> {
3032

3133
#[cfg(all(
3234
not(any(esp32s2, esp32p4)),
35+
esp_idf_bt_nimble_enabled,
3336
not(esp_idf_bt_nimble_l2cap_coc_max_num = "0")
3437
))]
3538
mod example {

src/ble/l2cap.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ use crate::sys::*;
1818
use super::mbuf::Mbuf;
1919
use super::{BleDriver, BleError, ConnHandle};
2020

21-
// See `mbuf.rs`: on chips whose BLE controller lives in ROM (`SOC_ESP_NIMBLE_CONTROLLER`), the
22-
// os_mbuf primitives are ROM-aliased, so that is the only name bindgen emits there.
21+
// See `mbuf.rs`: on chips whose BLE controller lives in ROM (`SOC_ESP_NIMBLE_CONTROLLER`: the
22+
// c2/c5/c6/c61/h2), the low-level os_mbuf / os_msys primitives are ROM-aliased, so `r_<name>` is the
23+
// only name bindgen emits there. (`ble_hs_mbuf_*` are host functions and are *not* aliased.)
2324
#[cfg(all(esp_idf_soc_esp_nimble_controller, esp_idf_bt_controller_enabled))]
2425
use crate::sys::r_os_mbuf_free_chain as os_mbuf_free_chain;
26+
#[cfg(all(esp_idf_soc_esp_nimble_controller, esp_idf_bt_controller_enabled))]
27+
use crate::sys::r_os_msys_get_pkthdr as os_msys_get_pkthdr;
2528

2629
/// An opaque handle to an open L2CAP channel (wraps `*mut ble_l2cap_chan`).
2730
///

0 commit comments

Comments
 (0)