File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ impl RxDescriptor {
126
126
self . inner_raw . read ( 3 ) & RXDESC_3_CTXT == RXDESC_3_CTXT
127
127
}
128
128
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
-
133
129
pub ( super ) fn frame_length ( & self ) -> usize {
134
130
if self . is_owned ( ) {
135
131
0
@@ -214,6 +210,10 @@ impl RxDescriptor {
214
210
215
211
#[ cfg( feature = "ptp" ) ]
216
212
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
+
217
217
/// Get PTP timestamps if available
218
218
pub ( super ) fn read_timestamp ( & self ) -> Option < Timestamp > {
219
219
if self . is_context ( ) && !self . is_owned ( ) {
You can’t perform that action at this time.
0 commit comments