Skip to content

Commit 703ba66

Browse files
committed
When defmt is enabled, enable it for fugit as well
1 parent 3a87906 commit 703ba66

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Move pin mode at the end of generics, add defaults for modes,
1313
bump MSRV to 1.59 [#418]
1414

15+
### Fixed
16+
- Enable the defmt feature on fugit when the defmt feature on the
17+
crate is enabled
18+
1519
### Added
1620

1721
- Support eMMC peripherals using SDIO module [#458]

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ features = ["stm32f429", "rt", "usb_fs", "can", "i2s", "fsmc_lcd"]
2727
targets = ["thumbv7em-none-eabihf"]
2828

2929
[dependencies]
30-
defmt = { version = "0.3.0", optional = true }
30+
defmt_ = { package = "defmt", version = "0.3.0", optional = true }
3131
bxcan = { version = "0.6", optional = true }
3232
cortex-m = "0.7.4"
3333
cortex-m-rt = "0.7"
@@ -324,6 +324,8 @@ i2s = ["stm32_i2s_v12x"]
324324

325325
fsmc_lcd = ["display-interface"]
326326

327+
defmt = ["defmt_", "fugit/defmt"]
328+
327329
adc2 = []
328330
adc3 = []
329331
can1 = []

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#![no_std]
22
#![allow(non_camel_case_types)]
33

4+
#[cfg(feature = "defmt")]
5+
extern crate defmt_ as defmt;
6+
47
#[cfg(not(feature = "device-selected"))]
58
compile_error!(
69
"This crate requires one of the following device features enabled:

0 commit comments

Comments
 (0)