diff options
| author | xoviat <[email protected]> | 2023-07-16 12:41:57 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-07-16 12:41:57 -0500 |
| commit | e95a7dc555f367534d3b8bc7a9b6f2d361b0d951 (patch) | |
| tree | b7f692fb1957fac70397cdc4a3686473cd8278df /tests | |
| parent | c7ec45a004750f590c1d9ea4a721972efe133b8e (diff) | |
wpan/mac: use slice view to avoid copy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/wpan_mac.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/stm32/src/bin/wpan_mac.rs b/tests/stm32/src/bin/wpan_mac.rs index cfa0aca3b..2fc15dc9d 100644 --- a/tests/stm32/src/bin/wpan_mac.rs +++ b/tests/stm32/src/bin/wpan_mac.rs | |||
| @@ -49,7 +49,10 @@ async fn main(spawner: Spawner) { | |||
| 49 | 49 | ||
| 50 | info!("resetting"); | 50 | info!("resetting"); |
| 51 | mbox.mac_subsystem | 51 | mbox.mac_subsystem |
| 52 | .send_command(&ResetRequest { set_default_pib: true }) | 52 | .send_command(&ResetRequest { |
| 53 | set_default_pib: true, | ||
| 54 | ..Default::default() | ||
| 55 | }) | ||
| 53 | .await | 56 | .await |
| 54 | .unwrap(); | 57 | .unwrap(); |
| 55 | let evt = mbox.mac_subsystem.read().await; | 58 | let evt = mbox.mac_subsystem.read().await; |
| @@ -71,6 +74,7 @@ async fn main(spawner: Spawner) { | |||
| 71 | mbox.mac_subsystem | 74 | mbox.mac_subsystem |
| 72 | .send_command(&GetRequest { | 75 | .send_command(&GetRequest { |
| 73 | pib_attribute: PibId::ExtendedAddress, | 76 | pib_attribute: PibId::ExtendedAddress, |
| 77 | ..Default::default() | ||
| 74 | }) | 78 | }) |
| 75 | .await | 79 | .await |
| 76 | .unwrap(); | 80 | .unwrap(); |
