diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-10-28 03:07:06 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-10-28 03:36:25 +0200 |
| commit | 663141b4e456bbfacaaff8decdba6840c76a136b (patch) | |
| tree | 8d151a795b008ab0791a6faa5dbd36e5b83522b5 /embassy-net/src/stack.rs | |
| parent | c995a97f2032d329c2955c79054b7e466b0b423b (diff) | |
nrf: add initial nrf5340 support
Diffstat (limited to 'embassy-net/src/stack.rs')
| -rw-r--r-- | embassy-net/src/stack.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-net/src/stack.rs b/embassy-net/src/stack.rs index 42defdcaf..4faf94953 100644 --- a/embassy-net/src/stack.rs +++ b/embassy-net/src/stack.rs | |||
| @@ -75,6 +75,7 @@ impl Stack { | |||
| 75 | f(stack) | 75 | f(stack) |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | #[allow(clippy::absurd_extreme_comparisons)] | ||
| 78 | pub fn get_local_port(&mut self) -> u16 { | 79 | pub fn get_local_port(&mut self) -> u16 { |
| 79 | let res = self.next_local_port; | 80 | let res = self.next_local_port; |
| 80 | self.next_local_port = if res >= LOCAL_PORT_MAX { | 81 | self.next_local_port = if res >= LOCAL_PORT_MAX { |
