Skip to content

Commit 20b5fee

Browse files
committed
Placate CI
1 parent ffadde2 commit 20b5fee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/dma/rx/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ impl<'a> RxRing<'a> {
248248
/// Receive the next packet (if any is ready), or return [`Err`]
249249
/// immediately.
250250
pub fn recv_next(&mut self, packet_id: Option<PacketId>) -> Result<RxPacket, RxError> {
251+
#[cfg(feature = "stm32h7xx-hal")]
251252
let entries_len = self.ring.len();
253+
252254
let entry = self.recv_next_impl(packet_id.map(|p| p.into()))?;
253255

254256
#[cfg(feature = "f-series")]

src/mac/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ impl EthernetMAC {
305305
}
306306

307307
// NOTE(allow): only used on F4 and F7
308-
#[cfg(all(feature = "ptp", feature = "f-series"))]
308+
#[cfg(all(feature = "ptp", feature = "f-series", not(feature = "stm32f1xx-hal")))]
309309
pub(crate) fn unmask_timestamp_trigger_interrupt() {
310310
// SAFETY: MACIMR only receives atomic writes.
311311
let mac = &unsafe { &*ETHERNET_MAC::ptr() };

0 commit comments

Comments
 (0)