Skip to content

Commit 19f907c

Browse files
committed
Fix compilation error
1 parent cffc535 commit 19f907c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dma/cache.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(feature = "ptp")]
12
use crate::ptp::Timestamp;
23

34
use super::PacketId;
@@ -52,6 +53,7 @@ impl Cache {
5253
}
5354
}
5455

56+
#[cfg(feature = "stm32h7xx-hal")]
5557
pub fn id(&self) -> Option<PacketId> {
5658
if self.has_packet_id {
5759
Some(self.packet_id)

src/dma/rx/f_series_descriptor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ impl RxDescriptor {
5252
desc: RawDescriptor::new(),
5353
last: false,
5454
cache: Cache::new(),
55-
#[cfg(not(feature = "ptp"))]
56-
_padding: [0u8; 4],
5755
}
5856
}
5957

0 commit comments

Comments
 (0)