We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71389b commit 79cfc92Copy full SHA for 79cfc92
src/adc.rs
@@ -265,11 +265,6 @@ impl<State> Adc<State> {
265
Chan: Channel<Adc<Ready>, ID=u8>,
266
{
267
self.rb.cfgr1.modify(|_, w| {
268
- // Safe, as `self.precision` is of type `Precision`, which defines
269
- // only valid values.
270
- //
271
- // The `bits` method is not unsafe on STM32L0x1, so we need to
272
- // suppress the warning there.
273
w
274
.res().bits(self.precision as u8)
275
.cont().bit(cont)
0 commit comments