STM32: Fix G4 build without defmt feature

This commit is contained in:
Adam Greig 2025-04-18 14:41:56 +01:00
parent 3ffee5e22b
commit 97172c36b7
No known key found for this signature in database
GPG Key ID: 80E6DEA26ADACD09

View File

@ -435,11 +435,13 @@ impl<'d, T: Instance> OpAmp<'d, T> {
T::regs().csr().modify(|w| match pair {
OpAmpDifferentialPair::P => {
defmt::info!("p calibration. offset: {}", mid);
#[cfg(feature = "defmt")]
defmt::debug!("opamp p calibration. offset: {}", mid);
w.set_trimoffsetp(mid);
}
OpAmpDifferentialPair::N => {
defmt::info!("n calibration. offset: {}", mid);
#[cfg(feature = "defmt")]
defmt::debug!("opamp n calibration. offset: {}", mid);
w.set_trimoffsetn(mid);
}
});