Skip to content

Commit

Permalink
Fix the example for the c6
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 23, 2025
1 parent 6d7fcb7 commit cca4160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ async fn matter() -> Result<(), anyhow::Error> {
))),
);

#[cfg(not(esp32c6))]
let (mut wifi_modem, mut bt_modem) = peripherals.modem.split();

#[cfg(esp32c6)]
let (mut wifi_modem, _, mut bt_modem) = peripherals.modem.split();

// Run the Matter stack with our handler
// Using `pin!` is completely optional, but saves some memory due to `rustc`
// not being very intelligent w.r.t. stack usage in async functions
Expand Down
4 changes: 4 additions & 0 deletions examples/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ async fn matter() -> Result<(), anyhow::Error> {
))),
);

#[cfg(not(esp32c6))]
let (mut wifi_modem, mut bt_modem) = peripherals.modem.split();

#[cfg(esp32c6)]
let (mut wifi_modem, _, mut bt_modem) = peripherals.modem.split();

// Run the Matter stack with our handler
// Using `pin!` is completely optional, but saves some memory due to `rustc`
// not being very intelligent w.r.t. stack usage in async functions
Expand Down

0 comments on commit cca4160

Please sign in to comment.