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 31bbf48 commit 3c039d9Copy full SHA for 3c039d9
src/modm/platform/adc/stm32f0/adc_impl.hpp.in
@@ -196,7 +196,7 @@ modm::platform::Adc{{ id }}::setChannels(std::span<const Channel> channels)
196
uint32_t config = 0xFFFF'FFFF;
197
for (const auto [i, ch] : modm::enumerate(channels)) {
198
enableInternalChannel(ch);
199
- config = (config & ~((0xF) << i)) | (std::to_underlying(ch) << i);
+ config = (config & ~((0xF) << i*4)) | (std::to_underlying(ch) << i*4);
200
}
201
ADC1->CHSELR = config;
202
waitChannelConfigReady();
0 commit comments