Skip to content

Commit c687836

Browse files
author
Bob McWhirter
committed
Guard the use status with cfg for i2c3 on stm32l4x5.
1 parent 03ca902 commit c687836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/i2c.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ hal! {
325325

326326
use crate::gpio::gpioa::{PA10, PA9};
327327
use crate::gpio::gpiob::{PB10, PB11, PB6, PB7};
328+
329+
#[cfg(feature = "stm32l4x5")]
328330
use crate::gpio::gpioc::{PC0, PC1};
329331

330332
pins!(I2C1, AF4,

0 commit comments

Comments
 (0)