Skip to content

Commit 51881df

Browse files
committed
Update feature for enabling timestamp interrupt
1 parent 4c0e24d commit 51881df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mac/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl EthernetMAC {
228228
parts.enable_promicious_mode();
229229
parts.disable_mmc_interrupts();
230230

231-
#[cfg(feature = "stm32h7xx-hal")]
231+
#[cfg(all(feature = "stm32h7xx-hal", feature = "ptp"))]
232232
// On H7 parts, the target timestamp interrupt
233233
// is not broken, so we can enable it unconditionally.
234234
{

0 commit comments

Comments
 (0)