diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-12 00:14:02 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-12 00:14:02 +0000 |
| commit | ac84631a2aa0243b8e7dccbe8af324f3f5cd19e0 (patch) | |
| tree | 87535352950f8353972037c441902066dd19d710 /examples | |
| parent | c283e2d1b914b58459bd39f59c2bda0e55d5d0bd (diff) | |
| parent | 70a91945fca97229518f4f8f011233650448771d (diff) | |
Merge pull request #2046 from embassy-rs/stm32-remove-polyfill
stm32: remove atomic-polyfill.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/eth_client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/eth_client.rs b/examples/stm32h7/src/bin/eth_client.rs index 4db7aa252..09d27cdbd 100644 --- a/examples/stm32h7/src/bin/eth_client.rs +++ b/examples/stm32h7/src/bin/eth_client.rs | |||
| @@ -105,8 +105,8 @@ async fn main(spawner: Spawner) -> ! { | |||
| 105 | 105 | ||
| 106 | info!("Network task initialized"); | 106 | info!("Network task initialized"); |
| 107 | 107 | ||
| 108 | static STATE: TcpClientState<1, 1024, 1024> = TcpClientState::new(); | 108 | let state: TcpClientState<1, 1024, 1024> = TcpClientState::new(); |
| 109 | let client = TcpClient::new(&stack, &STATE); | 109 | let client = TcpClient::new(&stack, &state); |
| 110 | 110 | ||
| 111 | loop { | 111 | loop { |
| 112 | let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(10, 42, 0, 1), 8000)); | 112 | let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(10, 42, 0, 1), 8000)); |
