non breaking API?

This commit is contained in:
Brandon Ros
2023-08-22 18:47:20 -04:00
parent 74a2af85d1
commit 0bcc8b10d5
2 changed files with 29 additions and 12 deletions

View File

@ -49,15 +49,8 @@ async fn main(spawner: Spawner) {
let state = make_static!(cyw43::State::new());
let bluetooth_firmware_offsets = &cyw43_firmware::BLUETOOTH_FIRMWARE_OFFSETS;
let bluetooth_firmware = &cyw43_firmware::BLUETOOTH_FIRMWARE;
let (_net_device, mut control, runner) = cyw43::new(
state,
pwr,
spi,
fw,
Some(bluetooth_firmware_offsets),
Some(bluetooth_firmware),
)
.await;
let (_net_device, mut control, runner) =
cyw43::new_with_bluetooth(state, pwr, spi, fw, bluetooth_firmware_offsets, bluetooth_firmware).await;
unwrap!(spawner.spawn(cyw43_runner_task(runner)));
control.init(clm).await;