aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/opamp.rs6
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 });