Skip to content

Commit 486c2ad

Browse files
committed
This is a PTP-only function
1 parent f50db4a commit 486c2ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dma/rx/h_desc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ impl RxDescriptor {
126126
self.inner_raw.read(3) & RXDESC_3_CTXT == RXDESC_3_CTXT
127127
}
128128

129-
pub(super) fn has_timestamp(&self) -> bool {
130-
(self.inner_raw.read(1) & RXDESC_1_TSA) == RXDESC_1_TSA && self.is_last()
131-
}
132-
133129
pub(super) fn frame_length(&self) -> usize {
134130
if self.is_owned() {
135131
0
@@ -214,6 +210,10 @@ impl RxDescriptor {
214210

215211
#[cfg(feature = "ptp")]
216212
impl RxDescriptor {
213+
pub(super) fn has_timestamp(&self) -> bool {
214+
(self.inner_raw.read(1) & RXDESC_1_TSA) == RXDESC_1_TSA && self.is_last()
215+
}
216+
217217
/// Get PTP timestamps if available
218218
pub(super) fn read_timestamp(&self) -> Option<Timestamp> {
219219
if self.is_context() && !self.is_owned() {

0 commit comments

Comments
 (0)