Skip to content

Commit d59ad5b

Browse files
committed
Merge tag 'v0.4.1' into merge-v0.4.1
2 parents b1616f7 + bfe5180 commit d59ad5b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## Unreleased
22
* Update to `smoltcp` v0.9 [#71](https://github.com/stm32-rs/stm32-eth/pull/71).
33

4+
## [0.4.1](https://github.com/stm32-rs/stm32-eth/tree/v0.4.1)
5+
* Fix a bug when caching timestamps in the TX path ([#73](https://github.com/stm32-rs/stm32-eth/pull/73))
6+
47
## [0.4.0](https://github.com/stm32-rs/stm32-eth/tree/v0.4.0)
58
* Remove the `smi` feature and always enable miim/smi. Use `ieee802_3_miim` for SMI access [#45](https://github.com/stm32-rs/stm32-eth/pull/45)
69
* Update stm32f1xx-hal and stm32f4xx-hal to their latests version as of 15-12-2022.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "stm32-eth"
44
description = "Embedded Rust Ethernet driver for the STM32 MCU series"
55
license = "Apache-2.0"
66
authors = ["Astro <[email protected]>", "Johannes Draaijer <[email protected]>"]
7-
version = "0.4.0"
7+
version = "0.4.1"
88
keywords = ["ethernet", "eth", "stm32", "stm32f4", "stm32f7"]
99
repository = "https://github.com/stm32-rs/stm32-eth"
1010
documentation = "https://docs.rs/stm32-eth/"

src/dma/tx.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,12 @@ impl TxRingEntry {
216216
if packet_id.is_some() {
217217
extra_flags |= TXDESC_0_TIMESTAMP_ENABLE | TXDESC_0_LS | TXDESC_0_FS;
218218
}
219+
219220
self.desc_mut().packet_id = packet_id;
221+
#[cfg(feature = "ptp")]
222+
// Remove old timestamp data when the packet ID is
223+
// changed.
224+
self.desc_mut().cached_timestamp.take();
220225

221226
extra_flags |= TXDESC_0_IC;
222227

0 commit comments

Comments
 (0)