diff options
| author | Ulf Lilleengen <[email protected]> | 2024-09-05 10:31:51 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-09-05 10:31:51 +0200 |
| commit | 5d0ed246400b1e7973c1fe870dba977ab7186a21 (patch) | |
| tree | 83226455df6070824fe796bcf865963698dd5e4b /examples | |
| parent | 836e8add1bcb09c476a3aa3d7a416a15b8c21e6a (diff) | |
Move configure out of run
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf9160/src/bin/modem_tcp_client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/nrf9160/src/bin/modem_tcp_client.rs b/examples/nrf9160/src/bin/modem_tcp_client.rs index b7d56802d..7d78eba0a 100644 --- a/examples/nrf9160/src/bin/modem_tcp_client.rs +++ b/examples/nrf9160/src/bin/modem_tcp_client.rs | |||
| @@ -56,9 +56,10 @@ async fn control_task( | |||
| 56 | config: context::Config<'static>, | 56 | config: context::Config<'static>, |
| 57 | stack: &'static Stack<embassy_net_nrf91::NetDriver<'static>>, | 57 | stack: &'static Stack<embassy_net_nrf91::NetDriver<'static>>, |
| 58 | ) { | 58 | ) { |
| 59 | unwrap!(control.configure(&config).await); | ||
| 59 | unwrap!( | 60 | unwrap!( |
| 60 | control | 61 | control |
| 61 | .run(&config, |status| { | 62 | .run(|status| { |
| 62 | stack.set_config_v4(status_to_config(status)); | 63 | stack.set_config_v4(status_to_config(status)); |
| 63 | }) | 64 | }) |
| 64 | .await | 65 | .await |
