Skip to content

Commit 38c3b26

Browse files
committed
Do not build can-loopback when unsupported
The example only works on devices with CAN peripheral
1 parent 36924ca commit 38c3b26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ required-features = ["rt"]
132132
name = "can-echo"
133133
required-features = ["connectivity"]
134134

135+
[[example]]
136+
name = "can-loopback"
137+
required-features = ["stm32f103", "stm32f105", "stm32f107"]
138+
135139
[[example]]
136140
name = "can-rtfm"
137141
required-features = ["connectivity", "rt"]

0 commit comments

Comments
 (0)