Skip to content

Commit 30480ab

Browse files
committed
fix warning
1 parent 00e168b commit 30480ab

File tree

1 file changed

+3
-0
lines changed
  • embassy-net-adin1110/src

1 file changed

+3
-0
lines changed

embassy-net-adin1110/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,17 +508,20 @@ impl<'d, SPI: SpiDevice, INT: Wait, RST: OutputPin> Runner<'d, SPI, INT, RST> {
508508
}
509509

510510
if status0.phyint() {
511+
#[cfg_attr(not(feature = "defmt"), allow(unused_variables))]
511512
let crsm_irq_st = self
512513
.mac
513514
.read_cl45(MDIO_PHY_ADDR, RegsC45::DA1E::CRSM_IRQ_STATUS.into())
514515
.await
515516
.unwrap();
516517

518+
#[cfg_attr(not(feature = "defmt"), allow(unused_variables))]
517519
let phy_irq_st = self
518520
.mac
519521
.read_cl45(MDIO_PHY_ADDR, RegsC45::DA1F::PHY_SYBSYS_IRQ_STATUS.into())
520522
.await
521523
.unwrap();
524+
522525
#[cfg(feature = "defmt")]
523526
defmt::warn!(
524527
"SPE CHIP PHY CRSM_IRQ_STATUS {:04x} PHY_SUBSYS_IRQ_STATUS {:04x}",

0 commit comments

Comments
 (0)