STM32: Fix G4 build without defmt feature
This commit is contained in:
parent
3ffee5e22b
commit
97172c36b7
@ -435,11 +435,13 @@ impl<'d, T: Instance> OpAmp<'d, T> {
|
|||||||
|
|
||||||
T::regs().csr().modify(|w| match pair {
|
T::regs().csr().modify(|w| match pair {
|
||||||
OpAmpDifferentialPair::P => {
|
OpAmpDifferentialPair::P => {
|
||||||
defmt::info!("p calibration. offset: {}", mid);
|
#[cfg(feature = "defmt")]
|
||||||
|
defmt::debug!("opamp p calibration. offset: {}", mid);
|
||||||
w.set_trimoffsetp(mid);
|
w.set_trimoffsetp(mid);
|
||||||
}
|
}
|
||||||
OpAmpDifferentialPair::N => {
|
OpAmpDifferentialPair::N => {
|
||||||
defmt::info!("n calibration. offset: {}", mid);
|
#[cfg(feature = "defmt")]
|
||||||
|
defmt::debug!("opamp n calibration. offset: {}", mid);
|
||||||
w.set_trimoffsetn(mid);
|
w.set_trimoffsetn(mid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user