diff options
| author | Adam Greig <[email protected]> | 2025-04-18 14:41:56 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2025-04-18 14:41:56 +0100 |
| commit | 97172c36b76d07fd45d96eff34be7913f0063f03 (patch) | |
| tree | 686e93f441b6621afae793a9d0dbd8a4d488bb3e | |
| parent | 3ffee5e22bc3d0a999842debc67d3111b9e3f771 (diff) | |
STM32: Fix G4 build without defmt feature
| -rw-r--r-- | embassy-stm32/src/opamp.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/embassy-stm32/src/opamp.rs b/embassy-stm32/src/opamp.rs index 82de4a89b..28ae2a3eb 100644 --- a/embassy-stm32/src/opamp.rs +++ b/embassy-stm32/src/opamp.rs | |||
| @@ -435,11 +435,13 @@ impl<'d, T: Instance> OpAmp<'d, T> { | |||
| 435 | 435 | ||
| 436 | T::regs().csr().modify(|w| match pair { | 436 | T::regs().csr().modify(|w| match pair { |
| 437 | OpAmpDifferentialPair::P => { | 437 | OpAmpDifferentialPair::P => { |
| 438 | defmt::info!("p calibration. offset: {}", mid); | 438 | #[cfg(feature = "defmt")] |
| 439 | defmt::debug!("opamp p calibration. offset: {}", mid); | ||
| 439 | w.set_trimoffsetp(mid); | 440 | w.set_trimoffsetp(mid); |
| 440 | } | 441 | } |
| 441 | OpAmpDifferentialPair::N => { | 442 | OpAmpDifferentialPair::N => { |
| 442 | defmt::info!("n calibration. offset: {}", mid); | 443 | #[cfg(feature = "defmt")] |
| 444 | defmt::debug!("opamp n calibration. offset: {}", mid); | ||
| 443 | w.set_trimoffsetn(mid); | 445 | w.set_trimoffsetn(mid); |
| 444 | } | 446 | } |
| 445 | }); | 447 | }); |
