aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wb
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-17 14:38:36 -0500
committerxoviat <[email protected]>2023-06-17 14:38:36 -0500
commitc7b0df569b02bee80de808a5b0ad69df3d32d84c (patch)
tree2599747a66f1e50c594c2ec22a425fefb84f115b /examples/stm32wb
parent041a4a4208dae563ab22f9986391509f4b90f740 (diff)
stm32/wpan: modify evtbox to use slice view
Diffstat (limited to 'examples/stm32wb')
-rw-r--r--examples/stm32wb/src/bin/tl_mbox_tx_rx.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/stm32wb/src/bin/tl_mbox_tx_rx.rs b/examples/stm32wb/src/bin/tl_mbox_tx_rx.rs
index 91a0f9c0a..84a4f78e4 100644
--- a/examples/stm32wb/src/bin/tl_mbox_tx_rx.rs
+++ b/examples/stm32wb/src/bin/tl_mbox_tx_rx.rs
@@ -48,7 +48,6 @@ async fn main(_spawner: Spawner) {
48 let config = Config::default(); 48 let config = Config::default();
49 let _ = TlMbox::init(p.IPCC, Irqs, config); 49 let _ = TlMbox::init(p.IPCC, Irqs, config);
50 50
51 let mut rx_buf = [0u8; 500];
52 Sys::shci_c2_ble_init(Default::default()).await; 51 Sys::shci_c2_ble_init(Default::default()).await;
53 52
54 info!("starting ble..."); 53 info!("starting ble...");
@@ -56,9 +55,8 @@ async fn main(_spawner: Spawner) {
56 55
57 info!("waiting for ble..."); 56 info!("waiting for ble...");
58 let ble_event = Ble::read().await; 57 let ble_event = Ble::read().await;
59 ble_event.write(&mut rx_buf).unwrap();
60 58
61 info!("ble event: {}", rx_buf); 59 info!("ble event: {}", ble_event.payload());
62 60
63 info!("Test OK"); 61 info!("Test OK");
64 cortex_m::asm::bkpt(); 62 cortex_m::asm::bkpt();